Skip to content

Commit c535e70

Browse files
committed
Missing push statement to frame
1 parent 5a81a6a commit c535e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloqade/qasm2/parse/lowering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def visit_BinOp(self, state: lowering.State[ast.Node], node: ast.BinOp):
398398
def visit_UnaryOp(self, state: lowering.State[ast.Node], node: ast.UnaryOp):
399399
if node.op == "-":
400400
stmt = expr.Neg(value=state.lower(node.operand).expect_one())
401-
return stmt.result
401+
return state.current_frame.push(stmt).result
402402
else:
403403
return state.lower(node.operand).expect_one()
404404

0 commit comments

Comments
 (0)