From: Josh Bleecher Snyder Date: Fri, 9 Jan 2015 23:16:14 +0000 (-0800) Subject: cmd/gc: fix ARM build X-Git-Tag: go1.5beta1~2386 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2feff0038bb7060bf7050a12b03b827194528732;p=gostls13.git cmd/gc: fix ARM build CL 2520 omitted to set the type for an OCONVNOP node. Typechecking obviously cannot do it for us. 5g inserts float64 <--> [u]int64 conversions at walk time. The missing type caused it to crash. Change-Id: Idce381f219bfef2e3a3be38d3ba3c258b71310ae Reviewed-on: https://go-review.googlesource.com/2640 Reviewed-by: Keith Randall --- diff --git a/src/cmd/gc/range.c b/src/cmd/gc/range.c index 947b4580ed..55fadae723 100644 --- a/src/cmd/gc/range.c +++ b/src/cmd/gc/range.c @@ -185,6 +185,7 @@ walkrange(Node *n) tmp->bounded = 1; tmp = nod(OADDR, tmp, N); tmp = nod(OCONVNOP, tmp, N); + tmp->type = ptrto(types[TUINT8]); n->nbody = list(n->nbody, nod(OAS, hp, tmp)); // hn = len(a) * sizeof(elem(a))