diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2021-01-12 08:32:21 +0000 |
---|---|---|
committer | Sander de Smalen <sander.desmalen@arm.com> | 2021-01-12 08:44:58 +0000 |
commit | c8a914db5c60dbeb5b638f30a9915855a67805f7 (patch) | |
tree | 49f4dd170e760caed27ca3eb2744fe6232c4b848 /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | |
parent | 215ed9b33ccbe9858aeb65b357bd1111cff354be (diff) | |
download | llvm-c8a914db5c60dbeb5b638f30a9915855a67805f7.zip llvm-c8a914db5c60dbeb5b638f30a9915855a67805f7.tar.gz llvm-c8a914db5c60dbeb5b638f30a9915855a67805f7.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp index 4811b80..e2daa46 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp @@ -572,8 +572,9 @@ private: Expr) < std::make_tuple( Other.Var, Other.Kind, Other.Loc.SpillLocation.SpillBase, - Loc.SpillLocation.SpillOffset.getFixed(), - Loc.SpillLocation.SpillOffset.getScalable(), Other.Expr); + Other.Loc.SpillLocation.SpillOffset.getFixed(), + Other.Loc.SpillLocation.SpillOffset.getScalable(), + Other.Expr); case RegisterKind: case ImmediateKind: case EntryValueKind: |