diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-08-27 08:14:06 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-08-27 08:14:06 +0000 |
commit | 0b828e08f94459ac0046b864871d92fed4aaef7c (patch) | |
tree | 4ec57b64451ddcb84496c4c2bfcf770154f725d3 /lib/Target/Alpha/AlphaISelDAGToDAG.cpp | |
parent | f037ca6245ed148941227736d7d9a0895a359fd7 (diff) |
Do not use getTargetNode() and SelectNodeTo() which takes more than 3
SDOperand arguments. Use the variants which take an array and number instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index 52aa8bb3eb..da9be76d22 100644 --- a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -442,10 +442,11 @@ void AlphaDAGToDAGISel::SelectCALL(SDOperand Op) { Opc = Alpha::STT; } else assert(0 && "Unknown operand"); - Chain = SDOperand(CurDAG->getTargetNode(Opc, MVT::Other, CallOperands[i], - getI64Imm((i - 6) * 8), - CurDAG->getCopyFromReg(Chain, Alpha::R30, MVT::i64), - Chain), 0); + + SDOperand Ops[] = { CallOperands[i], getI64Imm((i - 6) * 8), + CurDAG->getCopyFromReg(Chain, Alpha::R30, MVT::i64), + Chain }; + Chain = SDOperand(CurDAG->getTargetNode(Opc, MVT::Other, Ops, 4), 0); } for (int i = 0; i < std::min(6, count); ++i) { if (MVT::isInteger(TypeOperands[i])) { |