Fix #2286 by printing an error correctly

This commit is contained in:
gingerBill
2023-01-16 13:22:37 +00:00
parent a5a7226885
commit 5d397804f7
3 changed files with 12 additions and 1 deletions

View File

@@ -4898,6 +4898,9 @@ gb_internal bool is_type_normal_pointer(Type *ptr, Type **elem) {
gb_internal bool is_type_valid_atomic_type(Type *elem) {
elem = core_type(elem);
if (is_type_internally_pointer_like(elem)) {
return true;
}
if (elem->kind == Type_BitSet) {
elem = bit_set_to_int(elem);
}