forked from OSchip/llvm-project
Try to fix bots. We shouldn't be setting the entrybuilder's DL to a null one.
This was causing a DILocation verifier error, the old code path didn't try to do this when building constants via the finishPendingPhis() method.
This commit is contained in:
parent
f6c54a61da
commit
2fa14d4700
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue