mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -1922,10 +1922,11 @@ IRGenModule *IRGenerator::getGenModule(DeclContext *ctxt) {
|
||||
if (GenModules.size() == 1 || !ctxt) {
|
||||
return getPrimaryIGM();
|
||||
}
|
||||
SourceFile *SF = ctxt->getParentSourceFile();
|
||||
SourceFile *SF = ctxt->getOutermostParentSourceFile();
|
||||
if (!SF) {
|
||||
return getPrimaryIGM();
|
||||
}
|
||||
|
||||
IRGenModule *IGM = GenModules[SF];
|
||||
assert(IGM);
|
||||
return IGM;
|
||||
|
||||
Reference in New Issue
Block a user