]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: nodintconst is the new Nodintconst
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 15 Sep 2016 15:46:08 +0000 (08:46 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 15 Sep 2016 15:48:35 +0000 (15:48 +0000)
Fixes the build.

Change-Id: Ib9aca6cf86d595d20f22dbf730afa8dea4b44672
Reviewed-on: https://go-review.googlesource.com/29221
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/walk.go

index 2c873b8163b8395efc00e7bc2af3716fa36a02d1..f734c67bce4456bcd839eb70cf8ca9b3907c5a8b 100644 (file)
@@ -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)