Skip to content

Commit c8a914d

Browse files
committed
[LiveDebugValues] Fix comparison operator in VarLocBasedImpl
The issue was introduced in commit rG84a1120943a651184bae507fed5d648fee381ae4 and would cause a VarLoc's StackOffset to be compared with its own, instead of the StackOffset from the other VarLoc. This patch fixes that.
1 parent 215ed9b commit c8a914d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,9 @@ class VarLocBasedLDV : public LDVImpl {
572572
Expr) <
573573
std::make_tuple(
574574
Other.Var, Other.Kind, Other.Loc.SpillLocation.SpillBase,
575-
Loc.SpillLocation.SpillOffset.getFixed(),
576-
Loc.SpillLocation.SpillOffset.getScalable(), Other.Expr);
575+
Other.Loc.SpillLocation.SpillOffset.getFixed(),
576+
Other.Loc.SpillLocation.SpillOffset.getScalable(),
577+
Other.Expr);
577578
case RegisterKind:
578579
case ImmediateKind:
579580
case EntryValueKind:

0 commit comments

Comments
 (0)