Skip to content

Commit a9d8bf4

Browse files
committed
[InstallAPI] Silence unused variable warning, NFC
1 parent 36713a4 commit a9d8bf4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/InstallAPI/Visitor.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,10 @@ bool InstallAPIVisitor::VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
205205
const ObjCInterfaceDecl *InterfaceD = D->getClassInterface();
206206
const StringRef InterfaceName = InterfaceD->getName();
207207

208-
auto [Category, FA] = Ctx.Slice->addObjCCategory(InterfaceName, CategoryName,
209-
Avail, D, *Access);
210-
recordObjCInstanceVariables(D->getASTContext(), Category, InterfaceName,
208+
std::pair<ObjCCategoryRecord *, FrontendAttrs *> Category =
209+
Ctx.Slice->addObjCCategory(InterfaceName, CategoryName, Avail, D,
210+
*Access);
211+
recordObjCInstanceVariables(D->getASTContext(), Category.first, InterfaceName,
211212
D->ivars());
212213
return true;
213214
}

0 commit comments

Comments
 (0)