Improved #foo resolution inside of the compiler.

Deprecation of several `&` macros.
This commit is contained in:
Christoffer Lerno
2025-01-08 12:55:13 +01:00
parent ff33cc4dad
commit dad97fc2d9
24 changed files with 247 additions and 187 deletions

View File

@@ -6826,7 +6826,7 @@ static void llvm_emit_int_to_bool(GenContext *c, BEValue *value, Expr *expr)
Type *inner_type = value->type;
if (inner_type->type_kind == TYPE_ARRAY)
{
assert(inner_type->array.base == type_char || inner_type->array.base == type_ichar);
ASSERT0(inner_type->array.base == type_char || inner_type->array.base == type_ichar);
llvm_value_addr(c, value);
unsigned len = type_size(value->type);
ASSERT0(len > 0);