From 2fa14d47005115341c14f37cb2ab00062a60fe0d Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Thu, 29 Apr 2021 03:40:50 -0700 Subject: [PATCH] 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. --- llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 818c4c5e5567..01295a03bae1 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -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(&C)) EntryBuilder->buildConstant(Reg, *CI);