mirror of https://github.com/m-labs/artiq.git
ir: fix default argument fiasco.
This commit is contained in:
parent
5d64df829e
commit
b91ffa1b38
|
@ -1184,7 +1184,7 @@ class Parallel(Terminator):
|
||||||
in parallel.
|
in parallel.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, destinations=[], name=""):
|
def __init__(self, destinations, name=""):
|
||||||
super().__init__(destinations, builtins.TNone(), name)
|
super().__init__(destinations, builtins.TNone(), name)
|
||||||
|
|
||||||
def opcode(self):
|
def opcode(self):
|
||||||
|
|
|
@ -687,7 +687,7 @@ class ARTIQIRGenerator(algorithm.Visitor):
|
||||||
if types.is_builtin(context_expr_node.type, "sequential"):
|
if types.is_builtin(context_expr_node.type, "sequential"):
|
||||||
self.visit(node.body)
|
self.visit(node.body)
|
||||||
elif types.is_builtin(context_expr_node.type, "parallel"):
|
elif types.is_builtin(context_expr_node.type, "parallel"):
|
||||||
parallel = self.append(ir.Parallel())
|
parallel = self.append(ir.Parallel([]))
|
||||||
|
|
||||||
heads, tails = [], []
|
heads, tails = [], []
|
||||||
for stmt in node.body:
|
for stmt in node.body:
|
||||||
|
|
Loading…
Reference in New Issue