mirror of https://github.com/m-labs/artiq.git
compiler: allow empty list in quote
This commit is contained in:
parent
0806b67dbf
commit
6fb31a7abb
|
@ -1510,7 +1510,7 @@ class LLVMIRGenerator:
|
|||
llelts = [self._quote(value[i], elt_type, lambda: path() + [str(i)])
|
||||
for i in range(len(value))]
|
||||
else:
|
||||
assert False, fail_msg
|
||||
llelts = []
|
||||
lleltsary = ll.Constant(ll.ArrayType(self.llty_of_type(elt_type), len(llelts)),
|
||||
list(llelts))
|
||||
name = self.llmodule.scope.deduplicate("quoted.{}".format(kind_name))
|
||||
|
|
Loading…
Reference in New Issue