Use the function's calling convention when doing the call in cbuilder
This commit is contained in:
parent
a046685b2c
commit
e7b1af043f
1 changed files with 2 additions and 0 deletions
|
|
@ -1155,6 +1155,8 @@ class CFunc(CValue):
|
|||
"argument %d mismatch: %s != %s"
|
||||
% (self.function.name, i, exp, got.type))
|
||||
res = self.parent.builder.call(self.function, arg_values)
|
||||
if hasattr(self.function, 'calling_convention'):
|
||||
res.calling_convention = self.function.calling_convention
|
||||
return CTemp(self.parent, res)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue