Commit 8c58900a authored by Than McIntosh's avatar Than McIntosh

cmd/compile: fix problem with non-decomposed vars

Fix a bug introduced in patch 2 of
https://go-review.googlesource.com/72630 (sense of a map
lookup test was accidentally flipped).

Change-Id: Icc6096ee50be4605fa7542b9fd855c13b8aff090
Reviewed-on: https://go-review.googlesource.com/72850
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarHeschi Kreinick <heschi@google.com>
parent 2620ac3a
...@@ -484,7 +484,7 @@ func createComplexVars(fnsym *obj.LSym, debugInfo *ssa.FuncDebug, automDecls []* ...@@ -484,7 +484,7 @@ func createComplexVars(fnsym *obj.LSym, debugInfo *ssa.FuncDebug, automDecls []*
// named X in this function, but no, I don't have enough // named X in this function, but no, I don't have enough
// information to reliably report its contents." // information to reliably report its contents."
for _, n := range automDecls { for _, n := range automDecls {
if _, found := ssaVars[n]; !found { if _, found := ssaVars[n]; found {
continue continue
} }
c := n.Sym.Name[0] c := n.Sym.Name[0]
......
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