From: Rafael Espindola Date: Thu, 28 Aug 2008 14:24:45 +0000 (+0000) Subject: Correctly resize the Parts array. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;ds=sidebyside;h=c748ffa4e4408545b6adf102bfba52001f8a0a92;p=oota-llvm.git Correctly resize the Parts array. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55471 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 83fe4f5bfc7..34878f34425 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -4014,7 +4014,7 @@ SDValue RegsForValue::getCopyFromRegs(SelectionDAG &DAG, unsigned NumRegs = TLI->getNumRegisters(ValueVT); MVT RegisterVT = RegVTs[Value]; - Parts.resize(NumRegs); + Parts.resize(Part + NumRegs); for (unsigned i = 0; i != NumRegs; ++i) { SDValue P; if (Flag == 0)