[llvm] [CodeExtractor] Consider Value arguments of dbg.assign (PR #67987)

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 11:59:37 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);
----------------
felipepiovezan wrote:

There is a comment a few lines above, but sadly github doesn't show it. Does this address the concern?

https://github.com/llvm/llvm-project/pull/67987


More information about the llvm-commits mailing list