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:
parent
531f242f5d
commit
e224b1ebdb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user