diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-03-01 22:28:23 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-03-01 22:28:23 +0000 |
commit | 683fdd62bb499d6863de47a72847ecd135724d03 (patch) | |
tree | 177f4af4aaf0ce7bc1da6da9ad9c6b7570566d8d | |
parent | 250b4a74917edc79f2d34773cdb92c37ab83fa6c (diff) | |
download | bcm5719-llvm-683fdd62bb499d6863de47a72847ecd135724d03.tar.gz bcm5719-llvm-683fdd62bb499d6863de47a72847ecd135724d03.zip |
[MC] Fix MachineLocation constructor broken in r294685 (NFC).
Problem spotted by Frej Drejhammar.
llvm-svn: 296697
-rw-r--r-- | llvm/include/llvm/MC/MachineLocation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MachineLocation.h b/llvm/include/llvm/MC/MachineLocation.h index 000ab2998ed..f4fc6ee2fd1 100644 --- a/llvm/include/llvm/MC/MachineLocation.h +++ b/llvm/include/llvm/MC/MachineLocation.h @@ -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 && |