[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:55 PDT 2024
================
@@ -2285,6 +2287,7 @@ void llvm::salvageDebugInfoForDbgValues(
DIExpression::appendOpsToArg(SalvagedExpr, Ops, LocNo, StackValue);
LocItr = std::find(++LocItr, DIILocation.end(), &I);
}
+ SalvagedExpr = SalvagedExpr->foldConstantMath();
----------------
SLTozer wrote:
This could be moved after the `break` immediately below, since SalvagedExpr is unused if we hit the break.
https://github.com/llvm/llvm-project/pull/71721
More information about the llvm-commits
mailing list