[TableGen] Use 'unsigned' instead of 'bool' in a place where the code conditionally...
authorCraig Topper <craig.topper@gmail.com>
Mon, 19 Dec 2016 08:35:08 +0000 (08:35 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 19 Dec 2016 08:35:08 +0000 (08:35 +0000)
llvm-svn: 290088

llvm/utils/TableGen/CodeGenDAGPatterns.cpp

index 440f963..b82a76b 100644 (file)
@@ -2006,7 +2006,7 @@ bool TreePatternNode::canPatternMatch(std::string &Reason,
     // Scan all of the operands of the node and make sure that only the last one
     // is a constant node, unless the RHS also is.
     if (!OnlyOnRHSOfCommutative(getChild(getNumChildren()-1))) {
-      bool Skip = isCommIntrinsic ? 1 : 0; // First operand is intrinsic id.
+      unsigned Skip = isCommIntrinsic ? 1 : 0; // First operand is intrinsic id.
       for (unsigned i = Skip, e = getNumChildren()-1; i != e; ++i)
         if (OnlyOnRHSOfCommutative(getChild(i))) {
           Reason="Immediate value must be on the RHS of commutative operators!";