aboutsummaryrefslogtreecommitdiff
path: root/src/errors/errors.go
diff options
context:
space:
mode:
authorKeith Randall <khr@google.com>2019-05-13 13:43:49 -0700
committerKeith Randall <khr@golang.org>2019-05-14 16:36:38 +0000
commita9e107c85cf69d735ac81c29f4a354643e40b2b5 (patch)
tree872a2fd4984d2d79044bd564aafb585ac96bc56d /src/errors/errors.go
parent2637f1f9505fec6d1e5db39ebc5a182a54356aa6 (diff)
downloadgo-a9e107c85cf69d735ac81c29f4a354643e40b2b5.tar.xz
cmd/compile: make sure to initialize static entries of slices
If a slice's entries are sparse, we decide to initialize it dynamically instead of statically. That's CL 151319. But if we do initialize it dynamically, we still need to initialize the static entries. Typically we do that, but the bug fixed here is that we don't if the entry's value is itself an array or struct. To fix, use initKindLocalCode to ensure that both static and dynamic entries are initialized via code. Fixes #31987 Change-Id: I1192ffdbfb5cd50445c1206c4a3d8253295201dd Reviewed-on: https://go-review.googlesource.com/c/go/+/176904 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/errors/errors.go')
0 files changed, 0 insertions, 0 deletions