]> granicus.if.org Git - clang/commitdiff
Small follow-up to 254750 to get the test added there passing...
authorNico Weber <nicolasweber@gmx.de>
Fri, 4 Dec 2015 19:35:45 +0000 (19:35 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 4 Dec 2015 19:35:45 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254754 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 4aea4f8f94520b2f850cde86661ae6bb4a2d34f6..ff6388bd1a300fc12cdf29c0d3c63a0e2a4f170c 100644 (file)
@@ -1808,11 +1808,11 @@ llvm::DIType *CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty,
   };
   {
     llvm::SmallPtrSet<const IdentifierInfo*, 16> PropertySet;
-    //for (const ObjCCategoryDecl *ClassExt : ID->known_extensions())
-    //  for (auto *PD : ClassExt->properties()) {
-    //    PropertySet.insert(PD->getIdentifier());
-    //    AddProperty(PD);
-    //  }
+    for (const ObjCCategoryDecl *ClassExt : ID->known_extensions())
+      for (auto *PD : ClassExt->properties()) {
+        PropertySet.insert(PD->getIdentifier());
+        AddProperty(PD);
+      }
     for (const auto *PD : ID->properties()) {
       // Don't emit duplicate metadata for properties that were already in a
       // class extension.