get_struct
/set_struct!
overspecializes on field types that do nothing
#2057
Labels
get_struct
/set_struct!
overspecializes on field types that do nothing
#2057
For example,
Which means that for every type parameter in datalayouts that do not back data, we compile
get_struct
methods that do nothing:I think that this is one of the most over-specialized methods, so we should probably fix this. I think the simple fix is to check if
fieldcount(fieldtype(S, $i)) == 0
before recursing to the next method.The text was updated successfully, but these errors were encountered: