[cfe-commits] r68104 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Chris Lattner
sabre at nondot.org
Tue Mar 31 02:04:56 PDT 2009
Author: lattner
Date: Tue Mar 31 04:04:50 2009
New Revision: 68104
URL: http://llvm.org/viewvc/llvm-project?rev=68104&view=rev
Log:
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.
Modified:
cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=68104&r1=68103&r2=68104&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Tue Mar 31 04:04:50 2009
@@ -334,12 +334,6 @@
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));
}
More information about the cfe-commits
mailing list