[LIBC] Fix build failure caused by #110032 (#110539)

Fix LibC TableGen build failure caused by
https://github.com/llvm/llvm-project/pull/110032
This commit is contained in:
Rahul Joshi 2024-09-30 10:36:01 -07:00 committed by GitHub
parent 357c1970ca
commit 005f815313
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,8 +25,8 @@ static const char StandardSpecClassName[] = "StandardSpec";
static const char PublicAPIClassName[] = "PublicAPI";
static bool isa(const llvm::Record *Def, const llvm::Record *TypeClass) {
llvm::RecordRecTy *RecordType = Def->getType();
llvm::ArrayRef<llvm::Record *> Classes = RecordType->getClasses();
const llvm::RecordRecTy *RecordType = Def->getType();
llvm::ArrayRef<const llvm::Record *> Classes = RecordType->getClasses();
// We want exact types. That is, we don't want the classes listed in
// spec.td to be subclassed. Hence, we do not want the record |Def|
// to be of more than one class type..