mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Code review feedback from @jrose-apple for "95e9a0 The frontend should stop if the stdlib failed to load"
This commit is contained in:
@@ -256,8 +256,11 @@ void CompilerInstance::performSema() {
|
||||
}
|
||||
|
||||
// If we failed to load, we should have already diagnosed
|
||||
if (M->failedToLoad())
|
||||
if (M->failedToLoad()) {
|
||||
assert(Diagnostics.hadAnyError() &&
|
||||
"Module failed to load but nothing was diagnosed?");
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user