go.tools/ssa: use correct Alloc.Comment in lifting.

(Only affects diagnostic output.)

R=gri, gri
CC=golang-dev
https://golang.org/cl/23770046
This commit is contained in:
Alan Donovan 2013-11-12 23:04:09 -05:00
parent 626e9341d5
commit e7a2e079b0
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ func liftAlloc(df domFrontier, alloc *Alloc, newPhis newPhiMap) bool {
// It will be prepended to v.Instrs later, if needed. // It will be prepended to v.Instrs later, if needed.
phi := &Phi{ phi := &Phi{
Edges: make([]Value, len(v.Preds)), Edges: make([]Value, len(v.Preds)),
Comment: alloc.Name(), Comment: alloc.Comment,
} }
phi.pos = alloc.Pos() phi.pos = alloc.Pos()
phi.setType(deref(alloc.Type())) phi.setType(deref(alloc.Type()))