Do not add AT_APPLE_objc_class_extension attribute if @implementation is not seen.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131242 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 3519cd1..6def71f 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1242,8 +1242,7 @@
   uint64_t Align = CGM.getContext().getTypeAlign(Ty);
 
   unsigned Flags = 0;
-  if (ID->getFirstClassExtension() || 
-      (ID->getImplementation() && !ID->getImplementation()->ivar_empty()))
+  if (ID->getImplementation())
     Flags |= llvm::DIDescriptor::FlagObjcClassExtension;
 
   llvm::DIType RealDecl =