forked from M-Labs/artiq
1
0
Fork 0

transforms.int_monomorphizer: visit children of CallT.

This commit is contained in:
whitequark 2015-12-20 18:07:24 +08:00
parent 46f59b673f
commit e4615e7b37
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class IntMonomorphizer(algorithm.Visitor):
node.type["width"].unify(types.TValue(width)) node.type["width"].unify(types.TValue(width))
def visit_CallT(self, node): def visit_CallT(self, node):
self.generic_visit(node)
if types.is_builtin(node.func.type, "int") or \ if types.is_builtin(node.func.type, "int") or \
types.is_builtin(node.func.type, "round"): types.is_builtin(node.func.type, "round"):
typ = node.type.find() typ = node.type.find()