Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2025-07-30 09:36:41 -07:00
139 changed files with 656 additions and 601 deletions

View File

@@ -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();