From e4615e7b3777a323a2f64788dfc2b85a3c7053a8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 20 Dec 2015 18:07:24 +0800 Subject: [PATCH] transforms.int_monomorphizer: visit children of CallT. --- artiq/compiler/transforms/int_monomorphizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/transforms/int_monomorphizer.py b/artiq/compiler/transforms/int_monomorphizer.py index 397988792..94711a43a 100644 --- a/artiq/compiler/transforms/int_monomorphizer.py +++ b/artiq/compiler/transforms/int_monomorphizer.py @@ -28,6 +28,8 @@ class IntMonomorphizer(algorithm.Visitor): node.type["width"].unify(types.TValue(width)) def visit_CallT(self, node): + self.generic_visit(node) + if types.is_builtin(node.func.type, "int") or \ types.is_builtin(node.func.type, "round"): typ = node.type.find()