mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-20 00:46:30 +08:00
parent
88d346fa26
commit
02f46e8b79
@ -417,6 +417,8 @@ class ARTIQIRGenerator(algorithm.Visitor):
|
|||||||
length = self.iterable_len(insn)
|
length = self.iterable_len(insn)
|
||||||
return self.append(ir.Compare(ast.NotEq(loc=None), length, ir.Constant(0, length.type)),
|
return self.append(ir.Compare(ast.NotEq(loc=None), length, ir.Constant(0, length.type)),
|
||||||
block=block)
|
block=block)
|
||||||
|
elif builtins.is_none(insn.type):
|
||||||
|
return ir.Constant(False, builtins.TBool())
|
||||||
else:
|
else:
|
||||||
note = diagnostic.Diagnostic("note",
|
note = diagnostic.Diagnostic("note",
|
||||||
"this expression has type {type}",
|
"this expression has type {type}",
|
||||||
|
Loading…
Reference in New Issue
Block a user