Debug operands should not be def or kill.

llvm-svn: 95632
This commit is contained in:
Dale Johannesen 2010-02-09 00:42:08 +00:00
parent 4695741312
commit ce33776994
1 changed files with 3 additions and 0 deletions

View File

@ -246,11 +246,13 @@ public:
void setIsUse(bool Val = true) {
assert(isReg() && "Wrong MachineOperand accessor");
assert((Val || !isDebug()) && "Marking a debug operation as def");
IsDef = !Val;
}
void setIsDef(bool Val = true) {
assert(isReg() && "Wrong MachineOperand accessor");
assert((!Val || !isDebug()) && "Marking a debug operation as def");
IsDef = Val;
}
@ -261,6 +263,7 @@ public:
void setIsKill(bool Val = true) {
assert(isReg() && !IsDef && "Wrong MachineOperand accessor");
assert((!Val || !isDebug()) && "Marking a debug operation as kill");
IsKill = Val;
}