llvm.org GIT mirror llvm / 3d238de
Merging r195401: ------------------------------------------------------------------------ r195401 | lhames | 2013-11-21 16:46:32 -0800 (Thu, 21 Nov 2013) | 8 lines 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/branches/release_34@196073 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 6 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
563563 unsigned SubReg = 0,
564564 bool isDebug = false,
565565 bool isInternalRead = false) {
566 assert(!(isDead && !isDef) && "Dead flag on non-def");
567 assert(!(isKill && isDef) && "Kill flag on def");
566568 MachineOperand Op(MachineOperand::MO_Register);
567569 Op.IsDef = isDef;
568570 Op.IsImp = isImp;
19331933 return false;
19341934
19351935 // Mark the unimportant registers as in the POP.
1936 RegList.push_back(MachineOperand::CreateReg(CurReg, true, false, true));
1936 RegList.push_back(MachineOperand::CreateReg(CurReg, true, false, false,
1937 true));
19371938 }
19381939
19391940 if (RegsNeeded > 0)