Use the function's calling convention when doing the call in cbuilder

This commit is contained in:
Mark Wiebe 2012-08-30 18:13:03 -07:00
commit e7b1af043f

View file

@ -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