[llvm-commits] [llvm] r95632 - /llvm/trunk/include/llvm/CodeGen/MachineOperand.h
Dale Johannesen
dalej at apple.com
Mon Feb 8 16:42:09 PST 2010
Author: johannes
Date: Mon Feb 8 18:42:08 2010
New Revision: 95632
URL: http://llvm.org/viewvc/llvm-project?rev=95632&view=rev
Log:
Debug operands should not be def or kill.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineOperand.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineOperand.h?rev=95632&r1=95631&r2=95632&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOperand.h Mon Feb 8 18:42:08 2010
@@ -246,11 +246,13 @@
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 @@
void setIsKill(bool Val = true) {
assert(isReg() && !IsDef && "Wrong MachineOperand accessor");
+ assert((!Val || !isDebug()) && "Marking a debug operation as kill");
IsKill = Val;
}
More information about the llvm-commits
mailing list