mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user