[llvm] Use DIExpression::foldConstantMath at the result of a Salvaged expression (PR #71721)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 04:36:54 PDT 2024


================
@@ -2346,6 +2349,7 @@ void llvm::salvageDebugInfoForDbgValues(
           DIExpression::appendOpsToArg(SalvagedExpr, Ops, LocNo, StackValue);
       LocItr = std::find(++LocItr, DVRLocation.end(), &I);
     }
+    SalvagedExpr = SalvagedExpr->foldConstantMath();
----------------
SLTozer wrote:

Ditto above.

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


More information about the llvm-commits mailing list