]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/work: properly ignore error
authorLeon Klingele <git@leonklingele.de>
Wed, 30 Jan 2019 17:34:52 +0000 (17:34 +0000)
committerBryan C. Mills <bcmills@google.com>
Sat, 2 Mar 2019 05:03:59 +0000 (05:03 +0000)
Change-Id: Id0e8d170730d946b60c661d90bc98d0ca7545391
GitHub-Last-Rev: 19fed775b7e87c8c721b4487458354a2d5532a6c
GitHub-Pull-Request: golang/go#30001
Reviewed-on: https://go-review.googlesource.com/c/160425
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/internal/work/exec.go

index bb71faac9cf2a5ac8b560427af8c0809aada68cc..62651cc6830314ef2be2ef55e6f4117c6b6d34f8 100644 (file)
@@ -268,7 +268,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
                fmt.Fprintf(h, "compile %s %q %q\n", id, forcedGccgoflags, p.Internal.Gccgoflags)
                fmt.Fprintf(h, "pkgpath %s\n", gccgoPkgpath(p))
                if len(p.SFiles) > 0 {
-                       id, err = b.gccgoToolID(BuildToolchain.compiler(), "assembler-with-cpp")
+                       id, _ = b.gccgoToolID(BuildToolchain.compiler(), "assembler-with-cpp")
                        // Ignore error; different assembler versions
                        // are unlikely to make any difference anyhow.
                        fmt.Fprintf(h, "asm %q\n", id)