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

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 09:51:16 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:

Added a comment focusing on why dbg assign is different from the other intrinsics.

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


More information about the llvm-commits mailing list