1
0
mirror of https://github.com/golang/go synced 2024-11-26 05:57:58 -07:00

don't crash on

unsafe.Alignof(struct{x float}{0}.x)

R=ken
OCL=26911
CL=26913
This commit is contained in:
Russ Cox 2009-03-30 17:07:30 -07:00
parent 531f242f5d
commit e224b1ebdb

View File

@ -1591,6 +1591,7 @@ no:
return N;
yes:
addtop = N; // any side effects disappear
val.ctype = CTINT;
val.u.xval = mal(sizeof(*n->val.u.xval));
mpmovecfix(val.u.xval, v);