[MC] Fix MachineLocation constructor broken in r294685 (NFC).

Problem spotted by Frej Drejhammar.

llvm-svn: 296697
This commit is contained in:
Eugene Zelenko 2017-03-01 22:28:23 +00:00
parent 250b4a7491
commit 683fdd62bb
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&