mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove typechecker calls in varDecl()
We can now use transformAssign. The only remaining typechecker calls in the noder2 pass are for CompLitExpr nodes (OCOMPLIT). Change-Id: I25671c79cc30749767bb16f84e9f151b943eccd1 Reviewed-on: https://go-review.googlesource.com/c/go/+/305509 Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Dan Scales <danscales@google.com>
This commit is contained in:
parent
2abf280a28
commit
1a7d921aa5
3 changed files with 15 additions and 7 deletions
|
|
@ -15,7 +15,6 @@ import (
|
|||
)
|
||||
|
||||
func (g *irgen) expr(expr syntax.Expr) ir.Node {
|
||||
// TODO(mdempsky): Change callers to not call on nil?
|
||||
if expr == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue