mirror of
https://github.com/golang/go.git
synced 2026-04-03 01:40:30 +09:00
cmd/compile: fix bloop test
Not 100% sure this is right, but it seems to fix the issue. Fixes #77832 Change-Id: Ifa6eae61a5444f4fd88b310536b1caf7144e7797 Reviewed-on: https://go-review.googlesource.com/c/go/+/749660 Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Junyang Shao <shaojunyang@google.com> Auto-Submit: Keith Randall <khr@google.com>
This commit is contained in:
committed by
Gopher Robot
parent
40a10063e8
commit
f71432d223
@@ -86,7 +86,7 @@ func getKeepAliveNodes(pos src.XPos, n ir.Node) ir.Nodes {
|
||||
if name != nil {
|
||||
debugName(name, pos)
|
||||
return ir.Nodes{name}
|
||||
} else if deref := n.(*ir.StarExpr); deref != nil {
|
||||
} else if deref, ok := n.(*ir.StarExpr); ok && deref != nil {
|
||||
if base.Flag.LowerM > 1 {
|
||||
base.WarnfAt(pos, "dereference will be kept alive")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user