[llvm-commits] [llvm] r48126 - /llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Christopher Lamb
christopher.lamb at gmail.com
Sun Mar 9 21:16:09 PDT 2008
Author: clamb
Date: Sun Mar 9 23:16:09 2008
New Revision: 48126
URL: http://llvm.org/viewvc/llvm-project?rev=48126&view=rev
Log:
Revert accidentally committed local changes.
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=48126&r1=48125&r2=48126&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Sun Mar 9 23:16:09 2008
@@ -864,7 +864,7 @@
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 @@
MadeChange |= Child->ApplyTypeConstraints(TP, NotRegisters);
}
- if (ChildNo != getNumChildren() && !InstInfo.isVariadic)
+ if (ChildNo != getNumChildren())
TP.error("Instruction '" + getOperator()->getName() +
"' was provided too many operands!");
More information about the llvm-commits
mailing list