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;