Skip to content

Commit

Permalink
Throw error on failure in loading llvm-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dfordivam authored Nov 17, 2022
1 parent 251831e commit 693c631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ LLVMRustOptimize(
auto Plugin = PassPlugin::Load(PluginPath.str());
if (!Plugin) {
LLVMRustSetLastError(("Failed to load pass plugin" + PluginPath.str()).c_str());
continue;
return LLVMRustResult::Failure;
}
Plugin->registerPassBuilderCallbacks(PB);
}
Expand Down

0 comments on commit 693c631

Please sign in to comment.