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:
@@ -121,7 +121,7 @@ SILModule::SILModule(llvm::PointerUnion<FileUnit *, ModuleDecl *> context,
|
||||
if (auto *file = context.dyn_cast<FileUnit *>()) {
|
||||
AssociatedDeclContext = file;
|
||||
} else {
|
||||
AssociatedDeclContext = context.get<ModuleDecl *>();
|
||||
AssociatedDeclContext = cast<ModuleDecl *>(context);
|
||||
}
|
||||
TheSwiftModule = AssociatedDeclContext->getParentModule();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user