Skip to content

Commit 7b1b24d

Browse files
committed
Potential solution to Issue golang#17449.
Change-Id: I1fb8759057f6ef1c97b55330a1bc833e20957cc5
1 parent 98b22bc commit 7b1b24d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/cmd/compile/internal/gc/racewalk.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,10 @@ func instrumentnode(np **Node, init *Nodes, wr int, skip int) {
174174
}
175175
default:
176176
var outn Nodes
177-
outn.Set(out)
178177
instrumentnode(&ls[i], &outn, 0, 0)
179-
if ls[i].Op != OAS && ls[i].Op != OASWB && ls[i].Op != OAS2FUNC || ls[i].Ninit.Len() == 0 {
180-
out = append(outn.Slice(), ls[i])
181-
} else {
182-
// Splice outn onto end of ls[i].Ninit
183-
ls[i].Ninit.AppendNodes(&outn)
184-
out = append(out, ls[i])
185-
}
178+
// Splice outn onto end of ls[i].Ninit
179+
ls[i].Ninit.AppendNodes(&outn)
180+
out = append(out, ls[i])
186181
}
187182
}
188183
n.List.Set(out)

0 commit comments

Comments
 (0)