File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2989,7 +2989,7 @@ class DIExpression : public MDNode {
2989
2989
// /
2990
2990
// / We don't try very hard to interpret the expression because we assume that
2991
2991
// / foldConstantMath has canonicalized the expression.
2992
- bool extractLeadingOffset (int64_t &Offset ,
2992
+ bool extractLeadingOffset (int64_t &OffsetInBytes ,
2993
2993
SmallVectorImpl<uint64_t > &RemainingOps) const ;
2994
2994
2995
2995
// / Returns true iff this DIExpression contains at least one instance of
Original file line number Diff line number Diff line change @@ -1761,8 +1761,8 @@ bool DIExpression::extractIfOffset(int64_t &Offset) const {
1761
1761
}
1762
1762
1763
1763
bool DIExpression::extractLeadingOffset (
1764
- int64_t &Offset , SmallVectorImpl<uint64_t > &RemainingOps) const {
1765
- Offset = 0 ;
1764
+ int64_t &OffsetInBytes , SmallVectorImpl<uint64_t > &RemainingOps) const {
1765
+ OffsetInBytes = 0 ;
1766
1766
RemainingOps.clear ();
1767
1767
1768
1768
auto SingleLocEltsOpt = getSingleLocationExpressionElements ();
@@ -1779,14 +1779,14 @@ bool DIExpression::extractLeadingOffset(
1779
1779
Op == dwarf::DW_OP_LLVM_extract_bits_sext) {
1780
1780
break ;
1781
1781
} else if (Op == dwarf::DW_OP_plus_uconst) {
1782
- Offset += ExprOpIt->getArg (0 );
1782
+ OffsetInBytes += ExprOpIt->getArg (0 );
1783
1783
} else if (Op == dwarf::DW_OP_constu) {
1784
1784
uint64_t Value = ExprOpIt->getArg (0 );
1785
1785
++ExprOpIt;
1786
1786
if (ExprOpIt->getOp () == dwarf::DW_OP_plus)
1787
- Offset += Value;
1787
+ OffsetInBytes += Value;
1788
1788
else if (ExprOpIt->getOp () == dwarf::DW_OP_minus)
1789
- Offset -= Value;
1789
+ OffsetInBytes -= Value;
1790
1790
else
1791
1791
return false ;
1792
1792
} else {
You can’t perform that action at this time.
0 commit comments