[llvm] [CodeExtractor] Consider Value arguments of dbg.assign (PR #67987)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 2 10:23:40 PDT 2023
================
@@ -1579,6 +1579,11 @@ static void fixupDebugInfoPostExtraction(Function &OldFunc, Function &NewFunc,
DebugIntrinsicsToDelete.push_back(DVI);
continue;
}
+ if (auto *DAI = dyn_cast<DbgAssignIntrinsic>(DVI);
+ DAI && IsInvalidLocation(DAI->getAddress())) {
+ DebugIntrinsicsToDelete.push_back(DVI);
----------------
adrian-prantl wrote:
Can you add a comment explaining why?
https://github.com/llvm/llvm-project/pull/67987
More information about the llvm-commits
mailing list