Index: lib/CodeGen/LiveVariables.cpp =================================================================== RCS file: /var/cvs/llvm/llvm/lib/CodeGen/LiveVariables.cpp,v retrieving revision 1.44 diff -u -r1.44 LiveVariables.cpp --- lib/CodeGen/LiveVariables.cpp 1 Sep 2004 22:55:35 -0000 1.44 +++ lib/CodeGen/LiveVariables.cpp 18 Oct 2004 13:05:07 -0000 @@ -155,8 +155,9 @@ // physical register. This is a purely local property, because all physical // register references as presumed dead across basic blocks. // - MachineInstr *PhysRegInfoA[RegInfo->getNumRegs()]; - bool PhysRegUsedA[RegInfo->getNumRegs()]; + MachineInstr **PhysRegInfoA = new (MachineInstr *[RegInfo->getNumRegs()]); + bool *PhysRegUsedA = new (bool [RegInfo->getNumRegs()]); + std::fill(PhysRegInfoA, PhysRegInfoA+RegInfo->getNumRegs(), (MachineInstr*)0); PhysRegInfo = PhysRegInfoA; PhysRegUsed = PhysRegUsedA; @@ -289,6 +290,9 @@ assert(Visited.count(&*i) != 0 && "unreachable basic block found"); #endif + delete PhysRegInfoA; + delete PhysRegUsedA; + return false; }