tools/go/ssa
Alan Donovan 977844c7af go/ssa: fix crash when building map[*struct{}]bool{{}: true}
Since Go 1.5, if a key expression in a map literal is itself a composite
literal, the type may be omitted.  An & operation may be implied,
but was not generated, resulting in a type mismatch crash.

Added regression test.
Also, added missing intrinsic math.hasSSE4 to interpreter.

Fixes issue 13341

Change-Id: I6a5e560460cdcac295a500a3fc3738cbe8aa5853
Reviewed-on: https://go-review.googlesource.com/17123
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-11-23 19:08:17 +00:00
..
interp go/ssa: fix crash when building map[*struct{}]bool{{}: true} 2015-11-23 19:08:17 +00:00
ssautil go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
testdata go/ssa: emit DebugRefs for x, y = z() assignments 2015-10-23 10:25:05 +00:00
blockopt.go go.tools/go/ssa: don't attempt fusion on single-pred blocks with φ-nodes 2014-04-24 09:08:21 -04:00
builder.go go/ssa: fix crash when building map[*struct{}]bool{{}: true} 2015-11-23 19:08:17 +00:00
builder_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
const.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
create.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
doc.go go/ssa: update package doc to mention ssautil.CreateProgram 2015-07-27 18:48:45 +00:00
dom.go go.tools/go/ssa: use bytes.Buffer instead of io.Writer. 2014-01-28 17:48:10 -05:00
emit.go go/ssa: fix incorrect SSA code for composite literals 2015-03-17 14:26:39 +00:00
example_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
func.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
lift.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
lvalue.go go/ssa: fix incorrect SSA code for composite literals 2015-03-17 14:26:39 +00:00
methods.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
mode.go go/ssa: standardize parsing of BuilderMode flags. 2015-02-18 18:34:24 +00:00
print.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
sanity.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
source.go go/ssa/ssautil: break ssa->loader dependency 2015-04-14 18:01:36 +00:00
source_test.go x/tools: disable tests not supported on Android 2015-08-06 00:36:03 +00:00
ssa.go go/ssa: use sync.Once instead of sync.atomic 2015-09-18 15:11:51 +00:00
stdlib_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
testmain.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
testmain_test.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
util.go go/ssa: fix build (remove unused params to types.NewSignature) 2015-06-13 00:57:15 +00:00
wrappers.go go/ssa: fix build (remove unused params to types.NewSignature) 2015-06-13 00:57:15 +00:00