2 changes: 1 addition & 1 deletion llvm/include/llvm/TableGen/Record.h
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ class Record {
void updateClassLoc(SMLoc Loc);

// Make the type that this record should have based on its superclasses.
RecordRecTy *getType();
RecordRecTy *getType() const;

/// get the corresponding DefInit.
DefInit *getDefInit();
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/TableGen/Record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,7 @@ void Record::checkName() {
"' is not a string!");
}

RecordRecTy *Record::getType() {
RecordRecTy *Record::getType() const {
SmallVector<Record *, 4> DirectSCs;
getDirectSuperClasses(DirectSCs);
return RecordRecTy::get(TrackedRecords, DirectSCs);
Expand Down