r254754 - Small follow-up to 254750 to get the test added there passing...

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 11:35:46 PST 2015


Author: nico
Date: Fri Dec  4 13:35:45 2015
New Revision: 254754

URL: http://llvm.org/viewvc/llvm-project?rev=254754&view=rev
Log:
Small follow-up to 254750 to get the test added there passing...

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=254754&r1=254753&r2=254754&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Dec  4 13:35:45 2015
@@ -1808,11 +1808,11 @@ llvm::DIType *CGDebugInfo::CreateTypeDef
   };
   {
     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.




More information about the cfe-commits mailing list