Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compiler/crystal/codegen/types.cr
Original file line number Diff line number Diff line change
@@ -71,6 +71,12 @@ module Crystal
self.aliased_type.has_inner_pointers?
when TypeDefType
self.typedef.has_inner_pointers?
when VirtualType
if struct?
self.subtypes.any? &.has_inner_pointers?
else
true
end
when InstanceVarContainer
if struct?
all_instance_vars.each_value.any? &.type.has_inner_pointers?

0 comments on commit 7973c43

Please sign in to comment.