diff --git a/src/compiler.rs b/src/compiler.rs index b997cb30c..9f29af765 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -399,26 +399,22 @@ fn compile_func( 0, ); - values.push(( - ¶m.id, - ( - ¶m.ty, - if type_info.is_builtin() && type_info.is_zst(registry)? { - pre_entry_block - .append_operation(llvm::undef( - type_info.build(context, module, registry, metadata, ¶m.ty)?, - location, - )) - .result(0)? - .into() - } else { - let value = entry_block.argument(count)?.into(); - count += 1; + let value = if type_info.is_builtin() && type_info.is_zst(registry)? { + pre_entry_block + .append_operation(llvm::undef( + type_info.build(context, module, registry, metadata, ¶m.ty)?, + location, + )) + .result(0)? + .into() + } else { + let value = entry_block.argument(count)?.into(); + count += 1; - value - }, - ), - )); + value + }; + + values.push((¶m.id, (¶m.ty, value))); } values.into_iter()