Problem spotted by Frej Drejhammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296697
91177308-0d34-0410-b5e6-
96231b3b80d8
/// Create a direct register location.
explicit MachineLocation(unsigned R) : IsRegister(true), Register(R) {}
/// Create a register-indirect location with an offset.
- MachineLocation(unsigned R, int O) : Register(R) {}
+ MachineLocation(unsigned R, int O) : Register(R), Offset(O) {}
bool operator==(const MachineLocation &Other) const {
return IsRegister == Other.IsRegister && Register == Other.Register &&