diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2008-08-28 14:24:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2008-08-28 14:24:45 +0000 |
commit | c748ffa4e4408545b6adf102bfba52001f8a0a92 (patch) | |
tree | b06a16109d5bdc08039b184ca0cb6dc0a9517ed6 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 9242cb8b8288664da4147fd6dda43514926a9041 (diff) | |
download | llvm-c748ffa4e4408545b6adf102bfba52001f8a0a92.tar.gz llvm-c748ffa4e4408545b6adf102bfba52001f8a0a92.tar.bz2 llvm-c748ffa4e4408545b6adf102bfba52001f8a0a92.tar.xz |
Correctly resize the Parts array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 83fe4f5bfc..34878f3442 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) |