aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-24 10:14:16 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-11-25 15:36:33 -0800
commit58c2bec589d6d90db31744430407bc88695b5161 (patch)
tree7105980173ee3114ac008590eec48362afe62afe /lib/std/net.zig
parent500fbdad57424dd963227e9cfb468a90147ad72f (diff)
downloadzig-58c2bec589d6d90db31744430407bc88695b5161.tar.gz
zig-58c2bec589d6d90db31744430407bc88695b5161.zip
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
Diffstat (limited to 'lib/std/net.zig')
0 files changed, 0 insertions, 0 deletions