mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix IRGenModule::getMaximalTypeExpansionContext to use the proper associated context
In a per file compilation mode we want to use the file context -- which is stored in the AssociatedContext -- rather than defaulting to the current Swift Module context. rdar://114344533
This commit is contained in:
@@ -2017,7 +2017,7 @@ const llvm::StringRef IRGenerator::getClangDataLayoutString() {
|
||||
}
|
||||
|
||||
TypeExpansionContext IRGenModule::getMaximalTypeExpansionContext() const {
|
||||
return TypeExpansionContext::maximal(getSwiftModule(),
|
||||
return TypeExpansionContext::maximal(getSILModule().getAssociatedContext(),
|
||||
getSILModule().isWholeModule());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user