[PATCH] D159485: [DebugInfo][RemoveDIs] Use getStableDebugLoc when picking IRBuilder source locations
Jeremy Morse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 13:07:36 PDT 2023
jmorse added inline comments.
================
Comment at: llvm/include/llvm/IR/IRBuilder.h:200
if (IP != TheBB->end())
- SetCurrentDebugLocation(IP->getDebugLoc());
+ SetCurrentDebugLocation(IP->getStableDebugLoc());
}
----------------
durin42 wrote:
> The crash I'm seeing is on this line, I can give you the stack trace if you want to look in parallel with my investigation.
Rather than the stack, the contents of the block would be super-useful -- if you can attach an interactive debugger before the crash, then when the crash occurs, running:
call IP->dump()
call IP->getParent()->dump()
Will print all the relevant information to the terminal / output
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159485/new/
https://reviews.llvm.org/D159485
More information about the llvm-commits
mailing list