Commit a06e931a authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: nodintconst is the new Nodintconst

Fixes the build.

Change-Id: Ib9aca6cf86d595d20f22dbf730afa8dea4b44672
Reviewed-on: https://go-review.googlesource.com/29221Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
parent c9fd9975
......@@ -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)
......
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