]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't crash on (unsafe.Sizeof)(0)
authorMatthew Dempsky <mdempsky@google.com>
Wed, 28 Sep 2016 22:04:00 +0000 (15:04 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 28 Sep 2016 23:13:53 +0000 (23:13 +0000)
commit03a1dc3522f99bf5045fc41730e6682c1cc7402a
tree9b758ef0d45f8c5644828baf0923469642caf8bb
parent4d07d3e29c467484801b84dfeb762d2ee00979a9
cmd/compile: don't crash on (unsafe.Sizeof)(0)

Fixes #17270.

Change-Id: I4affa57e10baf1a758bc0977265d160f220b2945
Reviewed-on: https://go-review.googlesource.com/29960
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue17270.go [new file with mode: 0644]