diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-13 22:20:10 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-13 22:20:10 +0000 |
commit | 02475f1fd502fa1729d1fc447417087acf9e96c8 (patch) | |
tree | 4d02ab03d9e2666c4db6c13071e423b997fd1889 /utils/TableGen/Record.h | |
parent | 7ac01d954faf8930a337968fc4e5d84b27dcf0e4 (diff) | |
download | external_llvm-02475f1fd502fa1729d1fc447417087acf9e96c8.zip external_llvm-02475f1fd502fa1729d1fc447417087acf9e96c8.tar.gz external_llvm-02475f1fd502fa1729d1fc447417087acf9e96c8.tar.bz2 |
Further constify Record::isSubClassOf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 00b7730..3b2141c 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1017,7 +1017,7 @@ public: assert(0 && "Name does not exist in record!"); } - bool isSubClassOf(Record *R) const { + bool isSubClassOf(const Record *R) const { for (unsigned i = 0, e = SuperClasses.size(); i != e; ++i) if (SuperClasses[i] == R) return true; |