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 15:18:18 -0000 @@ -155,11 +155,10 @@ // 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()]; - std::fill(PhysRegInfoA, PhysRegInfoA+RegInfo->getNumRegs(), (MachineInstr*)0); - PhysRegInfo = PhysRegInfoA; - PhysRegUsed = PhysRegUsedA; + std::vector PhysRegInfoA(RegInfo->getNumRegs(), NULL); + std::vector PhysRegUsedA(RegInfo->getNumRegs(), false); + PhysRegInfo = PhysRegInfoA.begin(); + PhysRegUsed = PhysRegUsedA.begin(); /// Get some space for a respectable number of registers... VirtRegInfo.resize(64); Index: include/llvm/CodeGen/LiveVariables.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/CodeGen/LiveVariables.h,v retrieving revision 1.19 diff -u -r1.19 LiveVariables.h --- include/llvm/CodeGen/LiveVariables.h 26 Aug 2004 22:23:32 -0000 1.19 +++ include/llvm/CodeGen/LiveVariables.h 18 Oct 2004 15:18:18 -0000 @@ -31,6 +31,7 @@ #include "llvm/CodeGen/MachineFunctionPass.h" #include +#include namespace llvm { @@ -98,8 +99,8 @@ private: // Intermediate data structures const MRegisterInfo *RegInfo; - MachineInstr **PhysRegInfo; - bool *PhysRegUsed; + std::vector::iterator PhysRegInfo; + std::vector::iterator PhysRegUsed; void HandlePhysRegUse(unsigned Reg, MachineInstr *MI); void HandlePhysRegDef(unsigned Reg, MachineInstr *MI);