From 8f4ffbe1da084561ea8add9c7cd911ab729f7eb3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 20 Jan 2023 11:23:15 +0000 Subject: Fix #2299 by handling very large value cases correctly --- src/llvm_backend_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/llvm_backend_stmt.cpp') diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp index 73b4e251f..c268ab09a 100644 --- a/src/llvm_backend_stmt.cpp +++ b/src/llvm_backend_stmt.cpp @@ -2321,7 +2321,7 @@ gb_internal void lb_emit_defer_stmts(lbProcedure *p, lbDeferExitKind kind, lbBlo if (kind == lbDeferExit_Default) { if (p->scope_index == d.scope_index && - d.scope_index > 0) { // TODO(bill): Which is correct: > 0 or > 1? + d.scope_index > 0) { lb_build_defer_stmt(p, d); array_pop(&p->defer_stmts); continue; -- cgit v1.2.3