forked from OSchip/llvm-project
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. llvm-svn: 68104
This commit is contained in:
parent
6d35cc945f
commit
733dc19be6
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue