From 683fdd62bb499d6863de47a72847ecd135724d03 Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Wed, 1 Mar 2017 22:28:23 +0000 Subject: [PATCH] [MC] Fix MachineLocation constructor broken in r294685 (NFC). Problem spotted by Frej Drejhammar. llvm-svn: 296697 --- llvm/include/llvm/MC/MachineLocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/MC/MachineLocation.h b/llvm/include/llvm/MC/MachineLocation.h index 000ab2998ed8..f4fc6ee2fd19 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 &&