mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Add an assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c81295ab24
commit
92bc3bc11c
@ -277,7 +277,9 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
// PHI nodes are guaranteed to be at the top of the block...
|
// PHI nodes are guaranteed to be at the top of the block...
|
||||||
for (MachineBasicBlock::iterator MI = Succ->begin(), ME = Succ->end();
|
for (MachineBasicBlock::iterator MI = Succ->begin(), ME = Succ->end();
|
||||||
MI != ME && MI->getOpcode() == TargetInstrInfo::PHI; ++MI) {
|
MI != ME && MI->getOpcode() == TargetInstrInfo::PHI; ++MI) {
|
||||||
for (unsigned i = 1; ; i += 2)
|
for (unsigned i = 1; ; i += 2) {
|
||||||
|
assert(MI->getNumOperands() > i+1 &&
|
||||||
|
"Didn't find an entry for our predecessor??");
|
||||||
if (MI->getOperand(i+1).getMachineBasicBlock() == MBB) {
|
if (MI->getOperand(i+1).getMachineBasicBlock() == MBB) {
|
||||||
MachineOperand &MO = MI->getOperand(i);
|
MachineOperand &MO = MI->getOperand(i);
|
||||||
if (!MO.getVRegValueOrNull()) {
|
if (!MO.getVRegValueOrNull()) {
|
||||||
@ -290,6 +292,7 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Loop over PhysRegInfo, killing any registers that are available at the
|
// Loop over PhysRegInfo, killing any registers that are available at the
|
||||||
// end of the basic block. This also resets the PhysRegInfo map.
|
// end of the basic block. This also resets the PhysRegInfo map.
|
||||||
|
Loading…
Reference in New Issue
Block a user