mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[MC] Fix MachineLocation constructor broken in r294685 (NFC).
Problem spotted by Frej Drejhammar. llvm-svn: 296697
This commit is contained in:
parent
b2f95f13cf
commit
1445fb1065
@ -36,7 +36,7 @@ public:
|
||||
/// 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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user