mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove gratuituous type conversions
Follow-up cleanup for https://go-review.googlesource.com/17248: Use properly typed local variable op now that that variable use is not overloaded anymore. Also: Remove unnecessary if stmt from common lexical path. Change-Id: I984b0b346f3fdccd5aedc937330c0a5f99acf324 Reviewed-on: https://go-review.googlesource.com/17249 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
e18cd34c76
commit
de531fc255
2 changed files with 19 additions and 20 deletions
|
|
@ -92,7 +92,7 @@ type parser struct {
|
|||
|
||||
func (p *parser) next() {
|
||||
p.tok = yylex(&p.yy)
|
||||
p.op = Op(p.yy.i)
|
||||
p.op = p.yy.op
|
||||
p.val = p.yy.val
|
||||
p.sym_ = p.yy.sym
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue