summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-07 21:34:13 +0000
committerChris Lattner <sabre@nondot.org>2005-01-07 21:34:13 +0000
commitf025d6788c2903c093bd1bb9565e8573f62b3928 (patch)
treec7aac7d80d94cbed87648824d48a222849a90399 /llvm/lib/CodeGen
parent44b30c9abbafad725968959a84a91483a1aae5a1 (diff)
downloadbcm5719-llvm-f025d6788c2903c093bd1bb9565e8573f62b3928.tar.gz
bcm5719-llvm-f025d6788c2903c093bd1bb9565e8573f62b3928.zip
Fix a bug legalizing calls
llvm-svn: 19348
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a3a758f0aad..f31a2b4cd41 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -295,7 +295,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
std::vector<MVT::ValueType> RetTyVTs;
RetTyVTs.reserve(Node->getNumValues());
for (unsigned i = 0, e = Node->getNumValues(); i != e; ++i)
- RetTyVTs.push_back(Node->getValueType(0));
+ RetTyVTs.push_back(Node->getValueType(i));
Result = SDOperand(DAG.getCall(RetTyVTs, Tmp1, Tmp2), Op.ResNo);
}
break;
OpenPOWER on IntegriCloud