From: Chris Lattner Date: Tue, 31 Mar 2009 09:04:50 +0000 (+0000) Subject: remove the warning. We don't control what users do, and this code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c90dd0c682fe94b58ab3f95244f782d5f6159653;p=clang remove the warning. We don't control what users do, and this code 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 --- diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 62a77448be..06fee78e2e 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -334,12 +334,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { ConvertTypeRecursive(QualType(cast(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(Ty).getDecl(); return ConvertTagDeclType(Context.addRecordToClass(ID)); }