compiler.transforms.ARTIQIRGenerator: fix typo.

This commit is contained in:
whitequark 2015-08-06 08:24:06 +03:00
parent 98cd4288c1
commit ca52b2fdd0
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class ARTIQIRGenerator(algorithm.Visitor):
return self.append(ir.Closure(func, self.current_env)) return self.append(ir.Closure(func, self.current_env))
def visit_FunctionDefT(self, node): 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) self._set_local(node.name, func)
def visit_Return(self, node): def visit_Return(self, node):