stage1: Fix ICE when generating struct fields with padding

Make gen_const_ptr_struct_recursive aware of the possible presence of
some trailing padding by always bitcasting the pointer to its expected
type.

Not an elegant solution but makes LLVM happy and is consistent with how
the other callsites are handling this case.

Fixes #5398
58c2bec589LemonBoy committed on 11/25/2020, 11:36:33 PM· committed by Andrew Kelleyparent500fbda
3 files changedLine totals unavailable