ChangeToRegister should clear IsImp bit.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 15 Nov 2006 23:55:03 +0000 (23:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 15 Nov 2006 23:55:03 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31772 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h

index 1152a686046fb8b4ffdb40f7ff70338e3a77de33..b967a1fcb37b0272c28755aaa8efa9fd31c9ac30 100644 (file)
@@ -275,13 +275,13 @@ public:
   /// ChangeToRegister - Replace this operand with a new register operand of
   /// the specified value.  If an operand is known to be an register already,
   /// the setReg method should be used.
-  void ChangeToRegister(unsigned Reg, bool isDef,
-                        bool isKill = false, bool isDead = false) {
+  void ChangeToRegister(unsigned Reg, bool isDef) {
     opType = MO_Register;
     contents.RegNo = Reg;
     IsDef = isDef;
-    IsKill = isKill;
-    IsDead = isDead;
+    IsImp = false;
+    IsKill = false;
+    IsDead = false;
   }
 
   friend std::ostream& operator<<(std::ostream& os, const MachineOperand& mop);