[llvm] r296697 - [MC] Fix MachineLocation constructor broken in r294685 (NFC).
Eugene Zelenko via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 1 14:28:23 PST 2017
Author: eugenezelenko
Date: Wed Mar 1 16:28:23 2017
New Revision: 296697
URL: http://llvm.org/viewvc/llvm-project?rev=296697&view=rev
Log:
[MC] Fix MachineLocation constructor broken in r294685 (NFC).
Problem spotted by Frej Drejhammar.
Modified:
llvm/trunk/include/llvm/MC/MachineLocation.h
Modified: llvm/trunk/include/llvm/MC/MachineLocation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MachineLocation.h?rev=296697&r1=296696&r2=296697&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MachineLocation.h (original)
+++ llvm/trunk/include/llvm/MC/MachineLocation.h Wed Mar 1 16:28:23 2017
@@ -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 &&
More information about the llvm-commits
mailing list