diff --git a/llvm/utils/TableGen/Record.h b/llvm/utils/TableGen/Record.h index 00b77305cdca..3b2141c3ef19 100644 --- a/llvm/utils/TableGen/Record.h +++ b/llvm/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;