[llvm] Use DIExpression::foldConstantMath() at the result of an append() (PR #71719)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 10:04:09 PST 2023
================
@@ -2157,7 +2157,8 @@ DIExpression *DIExpression::foldConstantMath() {
if (Op1Raw == dwarf::DW_OP_plus_uconst && isConstantVal(Op2Raw) &&
Op3Raw == dwarf::DW_OP_plus) {
auto Result = Op1Arg + Op2Arg;
- WorkingOps.erase(WorkingOps.begin() + Loc + 2, WorkingOps.begin() + 5);
+ WorkingOps.erase(WorkingOps.begin() + Loc + 2,
+ WorkingOps.begin() + Loc + 5);
----------------
jmorse wrote:
(Ideally these whitespace changes will be squashed into the parent commit)
https://github.com/llvm/llvm-project/pull/71719
More information about the llvm-commits
mailing list