Commit 4e6e8e8c authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/compile: change two pushedio.bin tests to use importpkg instead

pushedio.bin and importpkg are both non-nil iff we're parsing an
package's export data, so "pushedio.bin == nil" and "importpkg == nil"
are equivalent tests.

Change-Id: I571ee908fef867117ef72c5da1eb24fe9b3fd12d
Reviewed-on: https://go-review.googlesource.com/19751Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent f8e41f6f
...@@ -1936,7 +1936,7 @@ check: ...@@ -1936,7 +1936,7 @@ check:
fallthrough fallthrough
case '\n': case '\n':
if pushedio.bin == nil { if importpkg == nil {
lexlineno++ lexlineno++
} }
} }
...@@ -1948,7 +1948,7 @@ check: ...@@ -1948,7 +1948,7 @@ check:
func ungetc(c int) { func ungetc(c int) {
curio.peekc1 = curio.peekc curio.peekc1 = curio.peekc
curio.peekc = c curio.peekc = c
if c == '\n' && pushedio.bin == nil { if c == '\n' && importpkg == nil {
lexlineno-- lexlineno--
} }
} }
......
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