Fix panic if attempting to compile with unsupported CPU (eg. x86_64 without AVX or SSE4.2)

This commit is contained in:
Nick Carton
2024-07-13 22:07:08 +10:00
parent 53b5c3b902
commit 5450f7122e

View File

@ -129,9 +129,8 @@ impl Compiler for SinglepassCompiler {
target,
calling_convention,
)
.unwrap()
})
.collect::<Vec<_>>()
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect();
let (functions, fdes): (Vec<CompiledFunction>, Vec<_>) = function_body_inputs