summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2008-03-10 04:16:09 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2008-03-10 04:16:09 +0000
commit80b928e600dd6963beaf35ded36c6a4efa6db511 (patch)
tree6d843a45a2ad50a3dca918a6eb6e53e1810a2ee3 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parent0faed2a9a60d470569529eebf46aa8092ff8911c (diff)
downloadbcm5719-llvm-80b928e600dd6963beaf35ded36c6a4efa6db511.tar.gz
bcm5719-llvm-80b928e600dd6963beaf35ded36c6a4efa6db511.zip
Revert accidentally committed local changes.
llvm-svn: 48126
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 95912194aaa..e5d70cd084e 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -864,7 +864,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
CDP.getTargetInfo().getInstruction(getOperator()->getName());
// Apply the result type to the node
if (NumResults == 0 || InstInfo.NumDefs == 0) {
- MadeChange = UpdateNodeType(MVT::isVoid, TP);
+ MadeChange = UpdateNodeType(MVT::isVoid, TP);
} else {
Record *ResultNode = Inst.getResult(0);
@@ -923,7 +923,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
MadeChange |= Child->ApplyTypeConstraints(TP, NotRegisters);
}
- if (ChildNo != getNumChildren() && !InstInfo.isVariadic)
+ if (ChildNo != getNumChildren())
TP.error("Instruction '" + getOperator()->getName() +
"' was provided too many operands!");
OpenPOWER on IntegriCloud