Skip to content

Commit ee61e11

Browse files
authored
Merge pull request #65276 from DougGregor/load-plugin-missing-return-5.9
2 parents 97a3f6f + eb2fa44 commit ee61e11

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
@@ -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();
@@ -6415,6 +6416,7 @@ void *ASTContext::loadLibraryPlugin(StringRef path) {
64156416
if (!plugin) {
64166417
Diags.diagnose(SourceLoc(), diag::compiler_plugin_not_loaded, path,
64176418
llvm::toString(plugin.takeError()));
6419+
return nullptr;
64186420
}
64196421

64206422
return plugin.get();

0 commit comments

Comments
 (0)