summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-11-22 00:46:32 +0000
committerLang Hames <lhames@gmail.com>2013-11-22 00:46:32 +0000
commit4fc9a4827307a52b386dace405889ff8f929e32b (patch)
tree241bf714461a476af2302ab54404b123d7e3e07a /include/llvm/CodeGen
parentd793a053ad9839e40bf59293b8f2190dc5b21dc1 (diff)
downloadllvm-4fc9a4827307a52b386dace405889ff8f929e32b.tar.gz
llvm-4fc9a4827307a52b386dace405889ff8f929e32b.tar.bz2
llvm-4fc9a4827307a52b386dace405889ff8f929e32b.tar.xz
Fix a typo where we were creating <def,kill> operands instead of
<def,dead> ones. Add an assertion to make sure we catch this in the future. Fixes <rdar://problem/15464559>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineOperand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index 57b28fecf8..40f3580bfd 100644
--- a/include/llvm/CodeGen/MachineOperand.h
+++ b/include/llvm/CodeGen/MachineOperand.h
@@ -564,6 +564,8 @@ public:
unsigned SubReg = 0,
bool isDebug = false,
bool isInternalRead = false) {
+ assert(!(isDead && !isDef) && "Dead flag on non-def");
+ assert(!(isKill && isDef) && "Kill flag on def");
MachineOperand Op(MachineOperand::MO_Register);
Op.IsDef = isDef;
Op.IsImp = isImp;