[llvm-branch-commits] [llvm] [KeyInstr][Inline] Don't propagate atoms to inlined nodebug instructions (PR #133485)
Jeremy Morse via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Apr 11 12:39:05 PDT 2025
================
@@ -1821,9 +1821,9 @@ static DebugLoc inlineDebugLoc(DebugLoc OrigDL, DILocation *InlinedAt,
/// to encode location where these instructions are inlined.
static void fixupLineNumbers(Function *Fn, Function::iterator FI,
Instruction *TheCall, bool CalleeHasDebugInfo) {
- const DebugLoc &TheCallDL = TheCall->getDebugLoc();
- if (!TheCallDL)
+ if (!TheCall->getDebugLoc())
return;
+ DebugLoc TheCallDL = TheCall->getDebugLoc().get()->getOrCloneWithoutAtom();
----------------
jmorse wrote:
Comment on why this is necessary desired.
https://github.com/llvm/llvm-project/pull/133485
More information about the llvm-branch-commits
mailing list