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