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
24d4bfb666LemonBoy committed on 11/25/2020, 11:36:57 PM· committed by Andrew Kelleyparent06a75c1
3 files changedLine totals unavailable