We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f8906 commit 704a8acCopy full SHA for 704a8ac
src/analyze.cpp
@@ -4191,8 +4191,7 @@ bool handle_is_ptr(TypeTableEntry *type_entry) {
4191
return type_has_bits(type_entry->data.error_union.payload_type);
4192
case TypeTableEntryIdMaybe:
4193
return type_has_bits(type_entry->data.maybe.child_type) &&
4194
- type_entry->data.maybe.child_type->id != TypeTableEntryIdPointer &&
4195
- type_entry->data.maybe.child_type->id != TypeTableEntryIdFn;
+ !type_is_codegen_pointer(type_entry->data.maybe.child_type);
4196
case TypeTableEntryIdUnion:
4197
assert(type_entry->data.unionation.complete);
4198
if (type_entry->data.unionation.gen_field_count == 0)
0 commit comments