commit | 181cdfd456484b2008e9061c656a52a1413a66aa | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Thu Mar 02 18:20:40 2017 -0500 |
committer | Alan Donovan <adonovan@google.com> | Fri Mar 03 14:03:29 2017 +0000 |
tree | 3a4a88c9c37e14cdc763211d61f8277fcac3ff6b | |
parent | f5a6ee1ea9f7b3a91e3e70dc1b9706886d0e0ae3 [diff] |
go/ssa: create an 'init' function even if len(files)==0 Package "unsafe" has no files, and is treated like a regular package since https://go-review.googlesource.com/37710, and the interpreter needs an init function with a body for every package. Change-Id: I27bd7cdb1ecaf01d0b5ed91db57145d1b4f551e1 Reviewed-on: https://go-review.googlesource.com/37711 Reviewed-by: Robert Griesemer <gri@golang.org>