Fix -Asserts warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2010-03-19 03:18:20 +00:00
parent 034843ac8b
commit 65f35d5703

View File

@ -1134,8 +1134,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
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 =