1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:04:56 -07:00

cmd/compile: no need to keep ()'s for all pseudocalls

Minor internal optimization.

Change-Id: I229d4a9df3da542b77f830c2830f63ec23ec1d61
Reviewed-on: https://go-review.googlesource.com/17065
Reviewed-by: Chris Manghane <cmang@golang.org>
This commit is contained in:
Robert Griesemer 2015-11-19 13:54:40 -08:00
parent 52f111fb34
commit de2bc5722d

View File

@ -1386,7 +1386,7 @@ func (p *parser) pseudocall() *Node {
defer p.trace("pseudocall")() defer p.trace("pseudocall")()
} }
x := p.pexpr(true) // keep_parens so we can report error below x := p.pexpr(p.tok == '(') // keep_parens so we can report error below
switch x.Op { switch x.Op {
case OCALL: case OCALL:
return x return x