Skip to content

Commit e7c294a

Browse files
authored
Merge pull request swiftlang#26497 from nkcsgexi/failed-load-abort
2 parents dc0805b + 64fc0cb commit e7c294a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swift-api-digester/ModuleAnalyzerNodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ swift::ide::api::getSDKNodeRoot(SDKContext &SDKCtx,
20802080
if (Opts.Verbose)
20812081
llvm::errs() << "Loading module: " << Name << "...\n";
20822082
auto *M = Ctx.getModuleByName(Name);
2083-
if (!M) {
2083+
if (!M || M->failedToLoad()) {
20842084
llvm::errs() << "Failed to load module: " << Name << '\n';
20852085
if (Opts.AbortOnModuleLoadFailure)
20862086
return nullptr;

0 commit comments

Comments
 (0)