Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmuth committed Mar 1, 2024
1 parent 2a501d8 commit fbf6a0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FrontEnd/emit_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ def EmitIRExprToMemory(init_node, dst: BaseOffset,
assert init_node.x_type.size > 0, f"{init_node}"
if isinstance(init_node, (cwast.ExprCall, cwast.ValNum, cwast.ValFalse,
cwast.ValTrue, cwast.ExprLen, cwast.ExprAddrOf,
cwast.Expr2, cwast.ExprPointer, cwast.ExprBitCast,
cwast.Expr1, cwast.Expr2,
cwast.ExprPointer, cwast.ExprBitCast,
cwast.ExprFront, cwast.ExprBitCast)):
reg = EmitIRExpr(init_node, tc, id_gen)
print(f"{TAB}st {dst.base} {dst.offset} = {reg}")
Expand Down

0 comments on commit fbf6a0a

Please sign in to comment.