mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't record the declared type of nominal type decls within the module file.
Instead, compute the type just after we load the nominal type declaration. This centralizes the type-computation code better as well. Swift SVN r7454
This commit is contained in:
@@ -1186,9 +1186,7 @@ ClassDecl *IRGenModule::getSwiftRootClass() {
|
||||
MutableArrayRef<TypeLoc>(),
|
||||
/*generics*/ nullptr,
|
||||
Context.TheBuiltinModule);
|
||||
auto declaredType = ClassType::get(SwiftRootClass, Type(), Context);
|
||||
SwiftRootClass->setDeclaredType(declaredType);
|
||||
SwiftRootClass->setType(MetaTypeType::get(declaredType, Context));
|
||||
SwiftRootClass->computeType();
|
||||
SwiftRootClass->getMutableAttrs().ObjC = true;
|
||||
SwiftRootClass->setIsObjC(true);
|
||||
return SwiftRootClass;
|
||||
|
||||
Reference in New Issue
Block a user