SSA - Basic block optimizations

This commit is contained in:
Ginger Bill
2016-10-09 11:46:14 +01:00
parent e299c3693e
commit 2e0b260d3a
5 changed files with 164 additions and 72 deletions
+1 -1
View File
@@ -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 = {};