aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-08-27 08:14:06 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-08-27 08:14:06 +0000
commit0b828e08f94459ac0046b864871d92fed4aaef7c (patch)
tree4ec57b64451ddcb84496c4c2bfcf770154f725d3 /lib/Target/Alpha/AlphaISelDAGToDAG.cpp
parentf037ca6245ed148941227736d7d9a0895a359fd7 (diff)
downloadexternal_llvm-0b828e08f94459ac0046b864871d92fed4aaef7c.zip
external_llvm-0b828e08f94459ac0046b864871d92fed4aaef7c.tar.gz
external_llvm-0b828e08f94459ac0046b864871d92fed4aaef7c.tar.bz2
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.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
index 52aa8bb..da9be76 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])) {