Commit 2feff003 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

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/2640Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent f03c9202
......@@ -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))
......
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