From 02475f1fd502fa1729d1fc447417087acf9e96c8 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 13 Mar 2009 22:20:10 +0000 Subject: [PATCH] Further constify Record::isSubClassOf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66970 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 00b77305cdc..3b2141c3ef1 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;