]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix build by updating to new types package
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 7 Apr 2017 15:53:38 +0000 (08:53 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 7 Apr 2017 16:02:57 +0000 (16:02 +0000)
CL 38776 was not updated to use the new types package.

Fixes build.

Change-Id: Ie80ff4837cac95bd628e0405a937045171d56e0c
Reviewed-on: https://go-review.googlesource.com/39918
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/walk.go

index 84425622a1052536a16f782156952c537f94e6d5..7a8becb35a4dd0346632f92143954668c8b18184 100644 (file)
@@ -1312,16 +1312,16 @@ opswitch:
                                                continue
                                        }
                                        var step int
-                                       var convType *Type
+                                       var convType *types.Type
                                        switch {
                                        case remains >= 8 && combine64bit:
-                                               convType = Types[TINT64]
+                                               convType = types.Types[TINT64]
                                                step = 8
                                        case remains >= 4:
-                                               convType = Types[TUINT32]
+                                               convType = types.Types[TUINT32]
                                                step = 4
                                        case remains >= 2:
-                                               convType = Types[TUINT16]
+                                               convType = types.Types[TUINT16]
                                                step = 2
                                        }
                                        ncsubstr := nod(OINDEX, ncs, nodintconst(int64(i)))