Skip to content

Commit 693c631

Browse files
authored
Throw error on failure in loading llvm-plugin
1 parent 251831e commit 693c631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ LLVMRustOptimize(
800800
auto Plugin = PassPlugin::Load(PluginPath.str());
801801
if (!Plugin) {
802802
LLVMRustSetLastError(("Failed to load pass plugin" + PluginPath.str()).c_str());
803-
continue;
803+
return LLVMRustResult::Failure;
804804
}
805805
Plugin->registerPassBuilderCallbacks(PB);
806806
}

0 commit comments

Comments
 (0)