Skip to content

Commit

Permalink
[dev.ssa] cmd/compile/internal/gc: mark unimplemented variable classe…
Browse files Browse the repository at this point in the history
…s as such

Doesn't fix the build entirely, but does make it get to the race
detector tests.

Change-Id: Ie986d52374936855b7ee975dc68742306527eb15
Reviewed-on: https://go-review.googlesource.com/11835
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
  • Loading branch information
DanielMorsing committed Jul 2, 2015
1 parent 596ddf4 commit be2a3e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmd/compile/internal/gc/ssa.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ func buildssa(fn *Node) (ssafn *ssa.Func, usessa bool) {
case PAUTO:
aux := &ssa.AutoSymbol{Typ: n.Type, Offset: -1, Sym: n.Sym} // offset TBD by SSA pass
s.decladdrs[n] = s.entryNewValue1A(ssa.OpAddr, Ptrto(n.Type), aux, s.sp)
default:
str := ""
if n.Class&PHEAP != 0 {
str = ",heap"
}
s.Unimplementedf("local variable %v with class %s%s unimplemented", n, classnames[n.Class&^PHEAP], str)
}
}
// nodfp is a special argument which is the function's FP.
Expand Down

0 comments on commit be2a3e2

Please sign in to comment.