Commit 1fa063cb authored by Daniel Martí's avatar Daniel Martí Committed by Robert Griesemer

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/37839Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
parent 61d9cd73
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment