mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Eager evaluation of macro arguments would break inferred arrays on some platforms. #2771.
This commit is contained in:
@@ -1451,7 +1451,7 @@ static inline bool sema_analyse_signature(SemaContext *context, Signature *sig,
|
||||
{
|
||||
if (!sema_deep_resolve_function_ptr(context, type_info)) return false;
|
||||
param->type = type_info->type;
|
||||
if (!sema_set_alignment(context, param->type, ¶m->alignment, true)) return false;
|
||||
if (!is_macro && !sema_set_alignment(context, param->type, ¶m->alignment, true)) return false;
|
||||
}
|
||||
|
||||
if (param->var.init_expr)
|
||||
|
||||
Reference in New Issue
Block a user