Skip to content

Commit eb2fa44

Browse files
committed
Fix missing return on error path in loadExecutablePlugin().
1 parent 808db07 commit eb2fa44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6393,6 +6393,7 @@ LoadedExecutablePlugin *ASTContext::loadExecutablePlugin(StringRef path) {
63936393
if (!plugin) {
63946394
Diags.diagnose(SourceLoc(), diag::compiler_plugin_not_loaded, path,
63956395
llvm::toString(plugin.takeError()));
6396+
return nullptr;
63966397
}
63976398

63986399
return plugin.get();

0 commit comments

Comments
 (0)