diff options
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/InstrSelection/InstrForest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp index 9ff681805b..ea2ccadab9 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp @@ -255,7 +255,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr) // if a fixed array is too small. // int numChildren = 0; - std::vector<InstrTreeNode*> childArray(instr->getNumOperands()); + InstrTreeNode** childArray = new InstrTreeNode*[instr->getNumOperands()]; // // Walk the operands of the instruction @@ -362,6 +362,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr) assert(n == 1); setRightChild(parent, childArray[numChildren - 1]); } - + + delete [] childArray; return treeNode; } |