diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-03-26 14:45:34 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-03-26 14:45:34 +0000 |
commit | 714bf32c6eb0cf282b91a3d1f92a06bde205e390 (patch) | |
tree | b835e69fdb4530bf9b8cc915cd3eef6f3fa6deb4 /utils | |
parent | 88889b4ff748ab63c041964201d6f7668759077c (diff) | |
download | external_llvm-714bf32c6eb0cf282b91a3d1f92a06bde205e390.zip external_llvm-714bf32c6eb0cf282b91a3d1f92a06bde205e390.tar.gz external_llvm-714bf32c6eb0cf282b91a3d1f92a06bde205e390.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.cpp | 4 |
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 |