]> Cypherpunks repositories - gostls13.git/commit
exp/ssa: fixed bug (typo) in findPromotedField.
authorAlan Donovan <adonovan@google.com>
Fri, 22 Feb 2013 17:35:45 +0000 (12:35 -0500)
committerAlan Donovan <adonovan@google.com>
Fri, 22 Feb 2013 17:35:45 +0000 (12:35 -0500)
commit71c37e1c88884edd7c9681ebbed9e3bbc1a08915
treecac375246cfd5939317d083160eb41d022185bea
parent0ba5f755132386604f811aaaf587cfc65a36bc38
exp/ssa: fixed bug (typo) in findPromotedField.

By appending to the wrong (always empty) list, only the last
anonymous field was being considered for promotion.

Also:
- eliminated "function-local NamedTypes" TODO; nothing to do.
- fixed Function.DumpTo: printing of anon receivers was "( T)",
  now "(T)"; extracted writeSignature into own function.
- eliminated blockNames function;
  thanks to BasicBlock.String, "%s" of []*BasicBlock is fine.
- extracted buildReferrers into own function.

exp/ssa can now build its own transitive closure.

R=gri
CC=golang-dev
https://golang.org/cl/7384054
src/pkg/exp/ssa/builder.go
src/pkg/exp/ssa/func.go
src/pkg/exp/ssa/promote.go
src/pkg/exp/ssa/sanity.go