summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-09-14 01:44:36 +0000
committerDale Johannesen <dalej@apple.com>2008-09-14 01:44:36 +0000
commite009180f2bbcf5edbe3b583936c37c4b3be2d082 (patch)
treea22afe692e10177ca491fd788cf5255dca60fc05 /lib/CodeGen
parentbfe2f407db4cfb27f7e0cebbffcd3db8d53f864c (diff)
downloadllvm-e009180f2bbcf5edbe3b583936c37c4b3be2d082.tar.gz
llvm-e009180f2bbcf5edbe3b583936c37c4b3be2d082.tar.bz2
llvm-e009180f2bbcf5edbe3b583936c37c4b3be2d082.tar.xz
adjust last patch per review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineInstr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index d54e7613f3..7f2a7b6a07 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/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;
}