[libc-commits] [libc] 005f815 - [LIBC] Fix build failure caused by #110032 (#110539)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 30 10:36:04 PDT 2024
Author: Rahul Joshi
Date: 2024-09-30T10:36:01-07:00
New Revision: 005f815313566dadec4037d6a34dad513e760527
URL: https://github.com/llvm/llvm-project/commit/005f815313566dadec4037d6a34dad513e760527
DIFF: https://github.com/llvm/llvm-project/commit/005f815313566dadec4037d6a34dad513e760527.diff
LOG: [LIBC] Fix build failure caused by #110032 (#110539)
Fix LibC TableGen build failure caused by
https://github.com/llvm/llvm-project/pull/110032
Added:
Modified:
libc/utils/LibcTableGenUtil/APIIndexer.cpp
Removed:
################################################################################
diff --git a/libc/utils/LibcTableGenUtil/APIIndexer.cpp b/libc/utils/LibcTableGenUtil/APIIndexer.cpp
index 65814b96f7f43e..0a77584071f996 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<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..
More information about the libc-commits
mailing list