Commit e224b1eb authored by Russ Cox's avatar Russ Cox

don't crash on

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

R=ken
OCL=26911
CL=26913
parent 531f242f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment