From ca52b2fdd05dfcb4b0fd8e2a2d756c9fad68a1d6 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 6 Aug 2015 08:24:06 +0300 Subject: [PATCH] compiler.transforms.ARTIQIRGenerator: fix typo. --- artiq/compiler/transforms/artiq_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/artiq_ir_generator.py b/artiq/compiler/transforms/artiq_ir_generator.py index 3872e014e..845ef3189 100644 --- a/artiq/compiler/transforms/artiq_ir_generator.py +++ b/artiq/compiler/transforms/artiq_ir_generator.py @@ -238,7 +238,7 @@ class ARTIQIRGenerator(algorithm.Visitor): return self.append(ir.Closure(func, self.current_env)) def visit_FunctionDefT(self, node): - func = self.visit_function(node, is_lambda=False, is_internal=len(name) > 2) + func = self.visit_function(node, is_lambda=False, is_internal=len(self.name) > 2) self._set_local(node.name, func) def visit_Return(self, node):