type: handle the 0-length array case in abiSizeAdvanced

This fixes a panic in `unionAbiSize` when a 0-length array of a union is used as a struct field.

Because `resolveTypeLayout` does not resolve the `elem_ty` if `arrayLenIncludingSentinel` returns
0 for the array, the child union type is not guaranteed to have a resolved layout at this point.

Fixed this case by just returning 0 here.
e7bf143b36kcbanner committed on 9/25/2023, 12:24:55 PM· committed by Andrew Kelleyparent8fab4f9
2 files changedLine totals unavailable