From 6eeec8bcc303e37cbfcfc83f0e10fe9482530568 Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 3 Feb 2025 04:29:19 +0200 Subject: [PATCH] spent quite some time debugging --- compiler/uvg_analyze.jou | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/uvg_analyze.jou b/compiler/uvg_analyze.jou index f74e0b89..eb97f5e0 100644 --- a/compiler/uvg_analyze.jou +++ b/compiler/uvg_analyze.jou @@ -106,7 +106,7 @@ def build_statuses_at_start_of_block(uvg: Uvg*, statuses_at_end: VarStatus**, bl return statuses -def handle_missing_return_statement(uvg: Uvg*, location: Location) -> bool: +def handle_missing_return_statement(uvg: Uvg*, location: Location) -> None: # Check if there is a "return" statement that user wrote. n = 0 for b = 0; b < uvg->nblocks; b++: @@ -165,7 +165,6 @@ def update_statuses_based_on_instructions(uvg: Uvg*, statuses: VarStatus*, block show_warning(ins->location, msg) case VarStatus.Unvisited: pass - pass case UvgInstructionKind.DontAnalyze: statuses[ins->var] = VarStatus.DontAnalyze