From ccf920d54f32330e68adfcbf4191f19da23a8de0 Mon Sep 17 00:00:00 2001 From: Sylvester Hesp Date: Wed, 30 Nov 2022 18:18:54 +0100 Subject: [PATCH] =?UTF-8?q?Actually=20use=20FnAbi=20in=20the=20call=20?= =?UTF-8?q?=F0=9F=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/rustc_codegen_spirv/src/codegen_cx/entry.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/rustc_codegen_spirv/src/codegen_cx/entry.rs b/crates/rustc_codegen_spirv/src/codegen_cx/entry.rs index 3e002f4287..a2bbd3b894 100644 --- a/crates/rustc_codegen_spirv/src/codegen_cx/entry.rs +++ b/crates/rustc_codegen_spirv/src/codegen_cx/entry.rs @@ -154,7 +154,13 @@ impl<'tcx> CodegenCx<'tcx> { ); } bx.set_span(span); - bx.call(entry_func.ty, None, entry_func, &call_args, None); + bx.call( + entry_func.ty, + Some(entry_fn_abi), + entry_func, + &call_args, + None, + ); bx.ret_void(); let stub_fn_id = stub_fn.def_cx(self);