Better handling of void/void*, unified local/global var analysis. Native base64 / hex data array (needs more checks)

This commit is contained in:
Christoffer Lerno
2021-08-19 15:08:06 +02:00
committed by Christoffer Lerno
parent 232632b74e
commit 64f20da080
22 changed files with 515 additions and 69 deletions

View File

@@ -655,7 +655,6 @@ AlignSize type_abi_alignment(Type *type)
{
case TYPE_POISONED:
case TYPE_TYPEINFO:
case TYPE_INFERRED_ARRAY:
UNREACHABLE;
case TYPE_BITSTRUCT:
return type_abi_alignment(type->decl->bitstruct.base_type->type);
@@ -698,6 +697,7 @@ AlignSize type_abi_alignment(Type *type)
case TYPE_STRLIT:
return t.iptr.canonical->builtin.abi_alignment;
case TYPE_ARRAY:
case TYPE_INFERRED_ARRAY:
return type_abi_alignment(type->array.base);
case TYPE_SUBARRAY:
return alignment_subarray;