[TableGen] Use 'unsigned' instead of 'bool' in a place where the code conditionally assigns numeric values. They happen to be 0 and 1 so this is NFC.

llvm-svn: 290088
This commit is contained in:
Craig Topper 2016-12-19 08:35:08 +00:00
parent f5123fecfe
commit 04bd11ec4d
1 changed files with 1 additions and 1 deletions

View 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!";