summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-12-19 08:35:08 +0000
committerCraig Topper <craig.topper@gmail.com>2016-12-19 08:35:08 +0000
commit04bd11ec4df856ebde36ce1dd68a0a506d2adfbe (patch)
treed720f7b627a757723580790e05b2981dc9e89e70 /llvm
parentf5123fecfee995ff76874bb7ea15a3bc2d3d531f (diff)
downloadbcm5719-llvm-04bd11ec4df856ebde36ce1dd68a0a506d2adfbe.tar.gz
bcm5719-llvm-04bd11ec4df856ebde36ce1dd68a0a506d2adfbe.zip
[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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 440f963fe79..b82a76bb035 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -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!";
OpenPOWER on IntegriCloud