mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Failure to load a bridging header -> failure to load a module.
This is important for both test targets and for debugging. rdar://problem/20616099 Swift SVN r30784
This commit is contained in:
@@ -270,6 +270,12 @@ FileUnit *SerializedModuleLoader::loadAST(
|
||||
break;
|
||||
}
|
||||
|
||||
case serialization::Status::FailedToLoadBridgingHeader:
|
||||
// We already emitted a diagnostic about the bridging header. Just emit
|
||||
// a generic message here.
|
||||
Ctx.Diags.diagnose(*diagLoc, diag::serialization_load_failed, M.getName());
|
||||
break;
|
||||
|
||||
case serialization::Status::NameMismatch: {
|
||||
// FIXME: This doesn't handle a non-debugger REPL, which should also treat
|
||||
// this as a non-fatal error.
|
||||
|
||||
Reference in New Issue
Block a user