]> granicus.if.org Git - clang/commitdiff
remove the warning. We don't control what users do, and this code
authorChris Lattner <sabre@nondot.org>
Tue, 31 Mar 2009 09:04:50 +0000 (09:04 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 31 Mar 2009 09:04:50 +0000 (09:04 +0000)
is run for perfectly reasonable things like NSString* because type
layout is recursive.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp

index 62a77448bea73b8404616f1f2a6f4985c0663d06..06fee78e2ea2b2979afa822890be87792df5fc4f 100644 (file)
@@ -334,12 +334,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
       ConvertTypeRecursive(QualType(cast<ExtQualType>(Ty).getBaseType(), 0));
 
   case Type::ObjCInterface: {
-    // Warning: Use of this is strongly discouraged.  Late binding of instance
-    // variables is supported on some runtimes and so using static binding can
-    // break code when libraries are updated.  Only use this if you have
-    // previously checked that the ObjCRuntime subclass in use does not support
-    // late-bound ivars.
-    // We are issuing warnings elsewhere!
     ObjCInterfaceDecl *ID = cast<ObjCInterfaceType>(Ty).getDecl();
     return ConvertTagDeclType(Context.addRecordToClass(ID));
   }