From: Josh Bleecher Snyder Date: Thu, 15 Sep 2016 15:46:08 +0000 (-0700) Subject: cmd/compile: nodintconst is the new Nodintconst X-Git-Tag: go1.8beta1~1299 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a06e931abec6082e8f2db65f29dd6c63be5c0de6;p=gostls13.git cmd/compile: nodintconst is the new Nodintconst Fixes the build. Change-Id: Ib9aca6cf86d595d20f22dbf730afa8dea4b44672 Reviewed-on: https://go-review.googlesource.com/29221 Reviewed-by: Josh Bleecher Snyder --- diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index 2c873b8163..f734c67bce 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -1419,10 +1419,10 @@ opswitch: ncs = safeexpr(ncs, init) } // TODO(marvin): Fix Node.EType type union. - r := Nod(cmp, Nod(OLEN, ncs, nil), Nodintconst(int64(len(s)))) + r := Nod(cmp, Nod(OLEN, ncs, nil), nodintconst(int64(len(s)))) for i := 0; i < len(s); i++ { - cb := Nodintconst(int64(s[i])) - ncb := Nod(OINDEX, ncs, Nodintconst(int64(i))) + cb := nodintconst(int64(s[i])) + ncb := Nod(OINDEX, ncs, nodintconst(int64(i))) r = Nod(and, r, Nod(cmp, ncb, cb)) } r = typecheck(r, Erv)