[libc-commits] [libc] [LIBC] Fix build failure caused by #110032 (PR #110539)

Rahul Joshi via libc-commits libc-commits at lists.llvm.org
Mon Sep 30 10:34:12 PDT 2024


https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/110539

Fix LibC TableGen build failure caused by https://github.com/llvm/llvm-project/pull/110032

>From 346b2210ece7a1b8b389a06b5fb65c5fd76e6178 Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Mon, 30 Sep 2024 10:32:27 -0700
Subject: [PATCH] [LIBC] Fix build failure caused by #110032

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 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