mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Add ModuleDecl::isResilient()
This cleans up some code. I'm keeping the ResilienceStrategy enum around though, in case we want to use it to version the ABI in the future.
This commit is contained in:
@@ -1455,7 +1455,7 @@ Status ModuleFile::associateWithFileContext(FileUnit *file,
|
||||
return error(Status::TargetIncompatible);
|
||||
}
|
||||
if (ctx.LangOpts.EnableTargetOSChecking &&
|
||||
M->getResilienceStrategy() != ResilienceStrategy::Resilient &&
|
||||
!M->isResilient() &&
|
||||
isTargetTooNew(moduleTarget, ctx.LangOpts.Target)) {
|
||||
return error(Status::TargetTooNew);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user