diff --git a/builder.py b/builder.py index 7aa5d93..daad0c4 100644 --- a/builder.py +++ b/builder.py @@ -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