diff --git a/cranelift/object/src/backend.rs b/cranelift/object/src/backend.rs index 85af3b5a5d..f8baf1452c 100644 --- a/cranelift/object/src/backend.rs +++ b/cranelift/object/src/backend.rs @@ -54,14 +54,14 @@ impl ObjectBuilder { name: String, collect_traps: ObjectTrapCollection, libcall_names: Box String>, - ) -> ModuleResult { - Ok(Self { + ) -> Self { + Self { isa, name, collect_traps, libcall_names, function_alignment: 1, - }) + } } /// Set the alignment used for functions.