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:
Amara Emerson 2021-04-29 03:40:50 -07:00
parent f6c54a61da
commit 2fa14d4700
1 changed files with 0 additions and 2 deletions

View 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);