]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: use correct export function (fix debugFormat)
authorRobert Griesemer <gri@golang.org>
Wed, 13 Apr 2016 23:57:23 +0000 (16:57 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 14 Apr 2016 00:41:29 +0000 (00:41 +0000)
Tested with debugFormat enabled and running
(export GO_GCFLAGS=-newexport; sh all.bash).

Change-Id: If7d43e1e594ea43c644232b89e670f7abb6b003e
Reviewed-on: https://go-review.googlesource.com/22033
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/bexport.go

index e0810f91390619cfdd465ac3d467197e36790776..eef2e2200d96cd2f0b519880a2d718a4e1e343a5 100644 (file)
@@ -350,7 +350,7 @@ func export(out *bufio.Writer, trace bool) int {
        if p.trace {
                p.tracef("\n")
        }
-       p.tag(-1) // invalid index terminates list
+       p.int(-1) // invalid index terminates list
 
        // for self-verification only (redundant)
        p.int(objcount)