[llvm] [OMPIRBuilder][Debug] Remove unnecessary code. (PR #156468)

Tom Eccles via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 09:39:56 PDT 2025


================
@@ -7382,9 +7382,6 @@ static void FixupDebugInfoForOutlinedFunction(
   // The location and scope of variable intrinsics and records still point to
   // the parent function of the target region. Update them.
   for (Instruction &I : instructions(Func)) {
-    if (auto *DDI = dyn_cast<llvm::DbgVariableIntrinsic>(&I))
----------------
tblah wrote:

nit: do you think it is worth putting an assertion here that it is not an intrinsic to guard against these being used in the future?

I'm happy to go forward with or without the assertion.

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


More information about the llvm-commits mailing list