[clang] a9d8bf4 - [InstallAPI] Silence unused variable warning, NFC
Cyndy Ishida via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 14:21:20 PDT 2024
Author: Cyndy Ishida
Date: 2024-03-25T17:20:24-04:00
New Revision: a9d8bf41bf9538154bcc3afcef55bdf309890c6f
URL: https://github.com/llvm/llvm-project/commit/a9d8bf41bf9538154bcc3afcef55bdf309890c6f
DIFF: https://github.com/llvm/llvm-project/commit/a9d8bf41bf9538154bcc3afcef55bdf309890c6f.diff
LOG: [InstallAPI] Silence unused variable warning, NFC
Added:
Modified:
clang/lib/InstallAPI/Visitor.cpp
Removed:
################################################################################
diff --git a/clang/lib/InstallAPI/Visitor.cpp b/clang/lib/InstallAPI/Visitor.cpp
index 452c8f2fb1e489..f8f5d8d53d5691 100644
--- a/clang/lib/InstallAPI/Visitor.cpp
+++ b/clang/lib/InstallAPI/Visitor.cpp
@@ -205,9 +205,10 @@ bool InstallAPIVisitor::VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
const ObjCInterfaceDecl *InterfaceD = D->getClassInterface();
const StringRef InterfaceName = InterfaceD->getName();
- auto [Category, FA] = Ctx.Slice->addObjCCategory(InterfaceName, CategoryName,
- Avail, D, *Access);
- recordObjCInstanceVariables(D->getASTContext(), Category, InterfaceName,
+ std::pair<ObjCCategoryRecord *, FrontendAttrs *> Category =
+ Ctx.Slice->addObjCCategory(InterfaceName, CategoryName, Avail, D,
+ *Access);
+ recordObjCInstanceVariables(D->getASTContext(), Category.first, InterfaceName,
D->ivars());
return true;
}
More information about the cfe-commits
mailing list