Skip to content

Commit 6e71c5c

Browse files
authored
Update __init__.py
1 parent 52eadb4 commit 6e71c5c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

rivetc/src/codegen/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,6 @@ def gen_decl(self, decl):
430430
self.cur_fn.arr_ret_struct = arr_ret_struct
431431
self.cur_fn_is_main = decl.is_main
432432
self.cur_fn_ret_typ = decl.ret_typ
433-
for defer_stmt in decl.defer_stmts:
434-
defer_stmt.flag_var = self.cur_fn.local_name()
435-
self.cur_fn.alloca(
436-
ir.Ident(ir.BOOL_T, defer_stmt.flag_var),
437-
ir.IntLit(ir.BOOL_T, "0")
438-
)
439433
self.gen_defer_stmt_vars(decl.defer_stmts)
440434
self.gen_stmts(decl.stmts)
441435
self.gen_defer_stmts()

0 commit comments

Comments
 (0)