2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

ir: fix default argument fiasco.

This commit is contained in:
whitequark 2015-10-14 17:02:59 +03:00
parent 5d64df829e
commit b91ffa1b38
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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: