mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix bug in check_is_terminating
This commit is contained in:
@@ -263,6 +263,9 @@ bool check_is_terminating(Ast *node, String const &label) {
|
|||||||
if (tv.value.value_bool) {
|
if (tv.value.value_bool) {
|
||||||
return check_is_terminating(ws->body, label);
|
return check_is_terminating(ws->body, label);
|
||||||
} else {
|
} else {
|
||||||
|
if (ws->else_stmt == nullptr) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return check_is_terminating(ws->else_stmt, label);
|
return check_is_terminating(ws->else_stmt, label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user