Skip to content

Commit 3adb415

Browse files
author
whitequark
committedJun 15, 2015
Fix type of Call.
1 parent 8c5e58f commit 3adb415

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

Diff for: ‎artiq/py2llvm/typing.py

+3
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,9 @@ def visit_CallT(self, node):
788788
self.engine.process(diag)
789789
return
790790

791+
self._unify(node.type, typ.ret,
792+
node.loc, None)
793+
791794
def visit_LambdaT(self, node):
792795
self.generic_visit(node)
793796
signature_type = self._type_from_arguments(node.args, node.body.type)

Diff for: ‎lit-test/py2llvm/typing/gcd.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ def _gcd(a, b):
99
b = c
1010
return b
1111

12+
# CHECK-L: _gcd:(a:int(width='a), b:int(width='a))->int(width='a)(10:int(width='a), 25:int(width='a)):int(width='a)
1213
_gcd(10, 25)

0 commit comments

Comments
 (0)
Please sign in to comment.