1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:04:45 -07:00

go/internal/gccimporter: actually use pkg parameter

We're passed a pkg, so it makes little sense to not use it. This was
probably a typo and not the intended behaviour.

Fixes #19407.

Change-Id: Ia1c9130c0e474daf47753cf51914a2d7db272c96
Reviewed-on: https://go-review.googlesource.com/37839
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Daniel Martí 2017-03-05 19:10:47 +01:00 committed by Robert Griesemer
parent 61d9cd73fb
commit 1fa063cbb6

View File

@ -739,7 +739,7 @@ func (p *parser) discardDirectiveWhileParsingTypes(pkg *types.Package) {
case ';':
return
case '<':
p.parseType(p.pkg)
p.parseType(pkg)
case scanner.EOF:
p.error("unexpected EOF")
default: