diff options
author | Dale Johannesen <dalej@apple.com> | 2008-09-14 01:44:36 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-09-14 01:44:36 +0000 |
commit | c0d712d9ed7ba899518d6f8d96b7781953a17fc8 (patch) | |
tree | 2c93ec17cef563aed6a6d60eecb0a9013159fb7d /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 25ac5e36298f1f0631c3e6efcdfc1c0e4bf4fca9 (diff) | |
download | bcm5719-llvm-c0d712d9ed7ba899518d6f8d96b7781953a17fc8.tar.gz bcm5719-llvm-c0d712d9ed7ba899518d6f8d96b7781953a17fc8.zip |
adjust last patch per review feedback
llvm-svn: 56194
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index d54e7613f3b..7f2a7b6a077 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -104,11 +104,11 @@ void MachineOperand::ChangeToImmediate(int64_t ImmVal) { /// the specified value. If an operand is known to be an register already, /// the setReg method should be used. void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, - bool isKill, bool isDead, - bool isEarlyClobber) { + bool isKill, bool isDead) { // If this operand is already a register operand, use setReg to update the // register's use/def lists. if (isRegister()) { + assert(!isEarlyClobber()); setReg(Reg); } else { // Otherwise, change this to a register and set the reg#. @@ -127,7 +127,7 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, IsImp = isImp; IsKill = isKill; IsDead = isDead; - IsEarlyClobber = isEarlyClobber; + IsEarlyClobber = false; SubReg = 0; } |