Skip to content

Commit 1bf924d

Browse files
committed
Fix missing return on error path in loadExecutablePlugin().
1 parent 39438e3 commit 1bf924d

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
@@ -6407,6 +6407,7 @@ LoadedExecutablePlugin *ASTContext::loadExecutablePlugin(StringRef path) {
64076407
if (!plugin) {
64086408
Diags.diagnose(SourceLoc(), diag::compiler_plugin_not_loaded, path,
64096409
llvm::toString(plugin.takeError()));
6410+
return nullptr;
64106411
}
64116412

64126413
return plugin.get();

0 commit comments

Comments
 (0)