Skip to content

Commit f6ceec7

Browse files
authored
Merge pull request #65275 from DougGregor/load-plugin-missing-return
2 parents b55d816 + 1bf924d commit f6ceec7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/ASTContext.cpp

Lines changed: 2 additions & 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();
@@ -6429,6 +6430,7 @@ LoadedLibraryPlugin *ASTContext::loadLibraryPlugin(StringRef path) {
64296430
if (!plugin) {
64306431
Diags.diagnose(SourceLoc(), diag::compiler_plugin_not_loaded, path,
64316432
llvm::toString(plugin.takeError()));
6433+
return nullptr;
64326434
}
64336435

64346436
return plugin.get();

0 commit comments

Comments
 (0)