aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-03-26 14:45:34 +0000
committerJim Grosbach <grosbach@apple.com>2009-03-26 14:45:34 +0000
commit866cc6005a2abfacc6568b4ea1cdfd141a639469 (patch)
treeb835e69fdb4530bf9b8cc915cd3eef6f3fa6deb4 /utils
parentdccbfea503f97e9b7621e779b0e6a4b81f1e1402 (diff)
downloadexternal_llvm-866cc6005a2abfacc6568b4ea1cdfd141a639469.zip
external_llvm-866cc6005a2abfacc6568b4ea1cdfd141a639469.tar.gz
external_llvm-866cc6005a2abfacc6568b4ea1cdfd141a639469.tar.bz2
Use 'bool' for FoundRC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index aad21fe..5b12f71 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -179,7 +179,7 @@ struct PatternSortingPredicate {
/// register. If the register is a member of multiple register classes which
/// have different associated types, return MVT::Other.
static MVT::SimpleValueType getRegisterValueType(Record *R, const CodeGenTarget &T) {
- int FoundRC = 0;
+ bool FoundRC = false;
MVT::SimpleValueType VT = MVT::Other;
const std::vector<CodeGenRegisterClass> &RCs = T.getRegisterClasses();
std::vector<CodeGenRegisterClass>::const_iterator RC;
@@ -189,7 +189,7 @@ static MVT::SimpleValueType getRegisterValueType(Record *R, const CodeGenTarget
Element = find((*RC).Elements.begin(), (*RC).Elements.end(), R);
if (Element != (*RC).Elements.end()) {
if (!FoundRC) {
- FoundRC = 1;
+ FoundRC = true;
VT = (*RC).getValueTypeNum(0);
} else {
// In multiple RC's