mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix regression on splat.
This commit is contained in:
@@ -1793,7 +1793,7 @@ static SplatResult sema_splat_optional_argument(SemaContext *context, Expr *expr
|
||||
candidate = sema_find_splat_arg(macro, expr->ct_ident_expr.identifier);
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
return SPLAT_NONE;
|
||||
}
|
||||
if (!candidate) return SPLAT_NONE;
|
||||
if (!candidate->var.no_init) return SPLAT_NONE;
|
||||
|
||||
Reference in New Issue
Block a user