From 32f6a8b8bb9de0180036eaf7f7ac6dc030d85655 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 21 Mar 2010 01:38:21 +0000 Subject: [PATCH] Fix suggested parentheses warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99111 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenDAGPatterns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 00b6fe2200d..4cc9b79a291 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1653,7 +1653,7 @@ InferAllTypes(const StringMap > *InNamedTypes) { continue; } - assert(Nodes[i]->getNumTypes() == 1 & + assert(Nodes[i]->getNumTypes() == 1 && InNodes[0]->getNumTypes() == 1 && "FIXME: cannot name multiple result nodes yet"); MadeChange |= Nodes[i]->UpdateNodeType(0, InNodes[0]->getExtType(0), @@ -1666,7 +1666,7 @@ InferAllTypes(const StringMap > *InNamedTypes) { if (I->second.size() > 1) { for (unsigned i = 0, e = Nodes.size()-1; i != e; ++i) { TreePatternNode *N1 = Nodes[i], *N2 = Nodes[i+1]; - assert(N1->getNumTypes() == 1 & N2->getNumTypes() == 1 && + assert(N1->getNumTypes() == 1 && N2->getNumTypes() == 1 && "FIXME: cannot name multiple result nodes yet"); MadeChange |= N1->UpdateNodeType(0, N2->getExtType(0), *this);