]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix problem with non-decomposed vars
authorThan McIntosh <thanm@google.com>
Mon, 23 Oct 2017 23:13:32 +0000 (19:13 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 24 Oct 2017 17:47:03 +0000 (17:47 +0000)
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: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/gc/pgen.go

index eaaf56f3851275a812e8fe4afc588a4bf451c763..cfdf07cc77110b9f4b320442ec747b6cb5a4b8c7 100644 (file)
@@ -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
        // information to reliably report its contents."
        for _, n := range automDecls {
-               if _, found := ssaVars[n]; !found {
+               if _, found := ssaVars[n]; found {
                        continue
                }
                c := n.Sym.Name[0]