diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 818c4c5e55678..01295a03bae17 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);