mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ABI/API checker: check if module has failed to load and abort if so
This commit is contained in:
@@ -2080,7 +2080,7 @@ swift::ide::api::getSDKNodeRoot(SDKContext &SDKCtx,
|
||||
if (Opts.Verbose)
|
||||
llvm::errs() << "Loading module: " << Name << "...\n";
|
||||
auto *M = Ctx.getModuleByName(Name);
|
||||
if (!M) {
|
||||
if (!M || M->failedToLoad()) {
|
||||
llvm::errs() << "Failed to load module: " << Name << '\n';
|
||||
if (Opts.AbortOnModuleLoadFailure)
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user