• Austin Clements's avatar
    cmd/compile: report typedslicecopy write barriers · afbe646a
    Austin Clements authored
    Most write barrier calls are inserted by SSA, but copy and append are
    lowered to runtime.typedslicecopy during walk. Fix these to set
    Func.WBPos and emit the "write barrier" warning, as done for the write
    barriers inserted by SSA. As part of this, we refactor setting WBPos
    and emitting this warning into the frontend so it can be shared by
    both walk and SSA.
    
    Change-Id: I5fe9997d9bdb55e03e01dd58aee28908c35f606b
    Reviewed-on: https://go-review.googlesource.com/73411
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    afbe646a
func.go 18.2 KB