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 | 029c1c8460aed07ce9b7e530aa2a6149ca2d4da3 (patch) | |
tree | 0e4c2388751e4db5ddd23c271f5341938ca799c2 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 94e3ab20b78b7e4563717d9117f6a94a1942149e (diff) | |
download | bcm5719-llvm-029c1c8460aed07ce9b7e530aa2a6149ca2d4da3.tar.gz bcm5719-llvm-029c1c8460aed07ce9b7e530aa2a6149ca2d4da3.zip |
Correctly resize the Parts array.
llvm-svn: 55471
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 83fe4f5bfc7..34878f34425 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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) |