Skip to content

Commit

Permalink
fix(compiler): missing public variable set for default switch block (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik authored Sep 21, 2024
1 parent 323facb commit 2b5e8f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gsc/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2618,6 +2618,7 @@ auto compiler::process_stmt_switch(stmt_switch const& stm, scope& scp) -> void
if (default_ctx->abort == scope::abort_none)
{
break_blks_.push_back(default_ctx);
childs.push_back(default_ctx);

if (scp.abort == scope::abort_none)
scp.abort = abort;
Expand Down

0 comments on commit 2b5e8f0

Please sign in to comment.