]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: fix the build
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 3 Oct 2015 16:35:40 +0000 (09:35 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 3 Oct 2015 16:37:18 +0000 (16:37 +0000)
Commit acc90c5 passed the trybots, lingered for weeks, and in the
meantime the type of this variable changed to a bool. I didn't rebase
and re-run the trybots before submitting.

Fixes #12832

Change-Id: If24fda227edd8207f8069c67f1c45f08e6ac215a
Reviewed-on: https://go-review.googlesource.com/15286
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/subr.go

index 3280710b224b996c369e2e9c4f9a3e9de75c41be..df6b6f662ebac57a5270222dd363b901feff471f 100644 (file)
@@ -2986,7 +2986,7 @@ func implements(t *Type, iface *Type, m **Type, samename **Type, ptr *int) bool
        var followptr bool
        var rcvr *Type
        for im := iface.Type; im != nil; im = im.Down {
-               if im.Broke == 1 {
+               if im.Broke {
                        continue
                }
                imtype = methodfunc(im.Type, nil)