mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
SSA - Basic block optimizations
This commit is contained in:
@@ -1279,7 +1279,7 @@ void check_stmt(Checker *c, AstNode *node, u32 flags) {
|
||||
}
|
||||
ast_node(cc, CaseClause, stmt);
|
||||
|
||||
AstNode *type_expr = cc->list[0];
|
||||
AstNode *type_expr = cc->list.count > 0 ? cc->list[0] : NULL;
|
||||
Type *tag_type = NULL;
|
||||
if (type_expr != NULL) { // Otherwise it's a default expression
|
||||
Operand y = {};
|
||||
|
||||
Reference in New Issue
Block a user