Fix a bug in my previous refactoring change... arg!

llvm-svn: 11535
This commit is contained in:
Chris Lattner 2004-02-17 07:02:17 +00:00
parent 6e540af8f7
commit d1289d0fcd
1 changed files with 3 additions and 1 deletions

View File

@ -492,7 +492,9 @@ MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
const TargetRegisterClass *RC = MF->getSSARegMap()->getRegClass(VirtReg);
unsigned PhysReg = getFreeReg(RC);
if (PhysReg == 0) { // No registers available...
if (PhysReg) { // PhysReg available!
PhysReg = getReg(MBB, MI, VirtReg);
} else { // No registers available...
/// If we can fold this spill into this instruction, do so now.
if (0) {
// TODO