Skip to content

Commit 32746fe

Browse files
committed
Use C call convention's arg packer in cabi_wrap_function
1 parent 8b5fae4 commit 32746fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numba_cuda/numba/cuda/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def cabi_wrap_function(context, lib, fndesc, wrapper_function_name,
333333
wrapfn = ir.Function(wrapper_module, wrapfnty, wrapper_function_name)
334334
builder = ir.IRBuilder(wrapfn.append_basic_block(''))
335335

336-
arginfo = context.get_arg_packer(argtypes)
336+
arginfo = c_call_conv._get_arg_packer(argtypes)
337337
callargs = arginfo.from_arguments(builder, wrapfn.args)
338338
# We get (status, return_value), but we ignore the status since we
339339
# can't propagate it through the C ABI anyway

numba_cuda/numba/cuda/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,4 @@ def get_return_type(self, ty):
365365
return self.context.data_model_manager[ty].get_return_type()
366366

367367
def _get_arg_packer(self, fe_args):
368-
return CUDACABIArgPacker(self.data_model_manager, fe_args)
368+
return CUDACABIArgPacker(self.context.data_model_manager, fe_args)

0 commit comments

Comments
 (0)