Throw error on failure in loading llvm-plugin
This commit is contained in:
parent
251831ece9
commit
693c6311f0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue