mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix a bug legalizing calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b5d631747
commit
ebda942efc
@ -295,7 +295,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
std::vector<MVT::ValueType> RetTyVTs;
|
std::vector<MVT::ValueType> RetTyVTs;
|
||||||
RetTyVTs.reserve(Node->getNumValues());
|
RetTyVTs.reserve(Node->getNumValues());
|
||||||
for (unsigned i = 0, e = Node->getNumValues(); i != e; ++i)
|
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);
|
Result = SDOperand(DAG.getCall(RetTyVTs, Tmp1, Tmp2), Op.ResNo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user