1
Fork 0

Remove the decl arg from FnAbi::llvm_type

We can apply the `c_variadic` fix all the time, rather than trying to
distinguish between declarations and any other use.
This commit is contained in:
Josh Stone 2021-08-04 11:20:31 -07:00
parent 183d79cc09
commit 41f27d903a
4 changed files with 9 additions and 10 deletions

View file

@ -712,7 +712,7 @@ fn gen_fn<'ll, 'tcx>(
codegen: &mut dyn FnMut(Builder<'_, 'll, 'tcx>),
) -> (&'ll Type, &'ll Value) {
let fn_abi = FnAbi::of_fn_ptr(cx, rust_fn_sig, &[]);
let llty = fn_abi.llvm_type(cx, false);
let llty = fn_abi.llvm_type(cx);
let llfn = cx.declare_fn(name, &fn_abi);
cx.set_frame_pointer_type(llfn);
cx.apply_target_cpu_attr(llfn);