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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-17 07:02:17 +00:00
parent c4601bf2f3
commit cdee28724e

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