From 005f815313566dadec4037d6a34dad513e760527 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Mon, 30 Sep 2024 10:36:01 -0700 Subject: [PATCH] [LIBC] Fix build failure caused by #110032 (#110539) Fix LibC TableGen build failure caused by https://github.com/llvm/llvm-project/pull/110032 --- libc/utils/LibcTableGenUtil/APIIndexer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/utils/LibcTableGenUtil/APIIndexer.cpp b/libc/utils/LibcTableGenUtil/APIIndexer.cpp index 65814b96f7f43..0a77584071f99 100644 --- a/libc/utils/LibcTableGenUtil/APIIndexer.cpp +++ b/libc/utils/LibcTableGenUtil/APIIndexer.cpp @@ -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 Classes = RecordType->getClasses(); + const llvm::RecordRecTy *RecordType = Def->getType(); + llvm::ArrayRef 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..