File tree 1 file changed +5
-0
lines changed
src/cmd/compile/internal/ssagen
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,7 @@ func buildssa(fn *ir.Func, worker int) *ssa.Func {
434
434
// bitmask showing which of the open-coded defers in this function
435
435
// have been activated.
436
436
deferBitsTemp := typecheck .TempAt (src .NoXPos , s .curfn , types .Types [types .TUINT8 ])
437
+ deferBitsTemp .SetAddrtaken (true )
437
438
s .deferBitsTemp = deferBitsTemp
438
439
// For this value, AuxInt is initialized to zero by default
439
440
startDeferBits := s .entryNewValue0 (ssa .OpConst8 , types .Types [types .TUINT8 ])
@@ -5086,6 +5087,10 @@ func (s *state) addr(n ir.Node) *ssa.Value {
5086
5087
defer s .popLine ()
5087
5088
}
5088
5089
5090
+ if s .canSSA (n ) {
5091
+ s .Fatalf ("addr of canSSA expression: %+v" , n )
5092
+ }
5093
+
5089
5094
t := types .NewPtr (n .Type ())
5090
5095
linksymOffset := func (lsym * obj.LSym , offset int64 ) * ssa.Value {
5091
5096
v := s .entryNewValue1A (ssa .OpAddr , t , lsym , s .sb )
You can’t perform that action at this time.
0 commit comments