Try to fix bots. We shouldn't be setting the entrybuilder's DL to a null one.
authorAmara Emerson <amara@apple.com>
Thu, 29 Apr 2021 10:40:50 +0000 (03:40 -0700)
committerAmara Emerson <amara@apple.com>
Thu, 29 Apr 2021 10:51:10 +0000 (03:51 -0700)
This was causing a DILocation verifier error, the old code path didn't try to do
this when building constants via the finishPendingPhis() method.

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

index 818c4c5..01295a0 100644 (file)
@@ -2864,8 +2864,6 @@ bool IRTranslator::translate(const Constant &C, Register Reg) {
     EntryBuilder->setDebugLoc(DILocation::get(C.getContext(), 0, 0,
                                               CurrInstDL.getScope(),
                                               CurrInstDL.getInlinedAt()));
-  else
-    EntryBuilder->setDebugLoc(DebugLoc());
 
   if (auto CI = dyn_cast<ConstantInt>(&C))
     EntryBuilder->buildConstant(Reg, *CI);