diff options
author | Dale Johannesen <dalej@apple.com> | 2010-02-09 00:42:08 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-02-09 00:42:08 +0000 |
commit | 38007ca86a51a6fa932b1dd0f3998f952d1145e2 (patch) | |
tree | e4e19c64a0582bfa172de1afdeadd7f561a64b0c /include | |
parent | e0710472c84e61acf085f101abb4213c6cb1f545 (diff) | |
download | external_llvm-38007ca86a51a6fa932b1dd0f3998f952d1145e2.zip external_llvm-38007ca86a51a6fa932b1dd0f3998f952d1145e2.tar.gz external_llvm-38007ca86a51a6fa932b1dd0f3998f952d1145e2.tar.bz2 |
Debug operands should not be def or kill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index a4db391..72f8775 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -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; } |