[llvm-commits] [llvm] r98927 - /llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Daniel Dunbar
daniel at zuster.org
Thu Mar 18 20:18:20 PDT 2010
Author: ddunbar
Date: Thu Mar 18 22:18:20 2010
New Revision: 98927
URL: http://llvm.org/viewvc/llvm-project?rev=98927&view=rev
Log:
Fix -Asserts warning.
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=98927&r1=98926&r2=98927&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Thu Mar 18 22:18:20 2010
@@ -1134,8 +1134,7 @@
if (getOperator()->isSubClassOf("Instruction")) {
const DAGInstruction &Inst = CDP.getInstruction(getOperator());
- unsigned NumResults = Inst.getNumResults();
- assert(NumResults <= 1 &&
+ assert(Inst.getNumResults() <= 1 &&
"Only supports zero or one result instrs!");
CodeGenInstruction &InstInfo =
More information about the llvm-commits
mailing list