[libc-commits] [libc] [LIBC] Fix build failure caused by #110032 (PR #110539)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 30 10:35:01 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Rahul Joshi (jurahul)
<details>
<summary>Changes</summary>
Fix LibC TableGen build failure caused by https://github.com/llvm/llvm-project/pull/110032
---
Full diff: https://github.com/llvm/llvm-project/pull/110539.diff
1 Files Affected:
- (modified) libc/utils/LibcTableGenUtil/APIIndexer.cpp (+2-2)
``````````diff
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..
``````````
</details>
https://github.com/llvm/llvm-project/pull/110539
More information about the libc-commits
mailing list