From deebf969c5ca77248c077692fe41ea32cd33adb8 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296697 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MachineLocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/MC/MachineLocation.h b/include/llvm/MC/MachineLocation.h index 000ab2998ed..f4fc6ee2fd1 100644 --- a/include/llvm/MC/MachineLocation.h +++ b/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 && -- 2.50.1