]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: fix missing sync implicit types
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 16 Jun 2021 16:00:23 +0000 (23:00 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 16 Jun 2021 16:30:37 +0000 (16:30 +0000)
commit8f95eaddd334e61b1832628741b97462ddc84975
tree6cacfae4c03ca1c4b6fac2b5280c77ec64d6f209
parenta4121d7dd66b0bca91cc1619721f69e9027af041
[dev.typeparams] cmd/compile: fix missing sync implicit types

CL 328051 introduced new syncImplicitTypes, but forgot to add a sync
after syncAddBody in linker.relocFuncExt, cause the compiler crashes
when reading in package data.

Adding missing w.sync(syncImplicitTypes) call fixes this.

While at it, also run go generate to update code generated for
syncImplicitTypes, which is also missed in CL 328051.

Change-Id: Ic65092f69f8d8e63de15989c7f15b6e5633d8f9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/328054
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/noder/linker.go
src/cmd/compile/internal/noder/syncmarker_string.go