mirror of https://github.com/golang/go.git
[dev.ssa] cmd/compile/internal/gc: mark unimplemented variable classes 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>
This commit is contained in:
parent
596ddf4368
commit
be2a3e2ac9
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue