We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c4c6a commit cf3317eCopy full SHA for cf3317e
lib/Frontend/Frontend.cpp
@@ -256,8 +256,11 @@ void CompilerInstance::performSema() {
256
}
257
258
// If we failed to load, we should have already diagnosed
259
- if (M->failedToLoad())
+ if (M->failedToLoad()) {
260
+ assert(Diagnostics.hadAnyError() &&
261
+ "Module failed to load but nothing was diagnosed?");
262
return;
263
+ }
264
265
break;
266
test/ClangModules/bad-deployment-target.swift
@@ -1,4 +1,4 @@
1
-// RUN: not %swift -parse -target x86_64-apple-macosx10.8 %clang-importer-sdk -I %S/Inputs/custom-modules %s
+// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -target x86_64-apple-macosx10.8 %s
2
//
3
// This test ensures that a -target that is too old for the standard library
4
// will not crash in the ClangImporter.
0 commit comments