From: Than McIntosh Date: Mon, 23 Oct 2017 23:13:32 +0000 (-0400) Subject: cmd/compile: fix problem with non-decomposed vars X-Git-Tag: go1.10beta1~618 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8c58900aeb9241e856515c23519455bf39c808df;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Heschi Kreinick --- diff --git a/src/cmd/compile/internal/gc/pgen.go b/src/cmd/compile/internal/gc/pgen.go index eaaf56f385..cfdf07cc77 100644 --- a/src/cmd/compile/internal/gc/pgen.go +++ b/src/cmd/compile/internal/gc/pgen.go @@ -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]