Commit 6b451ce3 authored by Austin Clements's avatar Austin Clements

cmd/compile: expand comment on cgo_unsafe_args in inlinine

Change-Id: Ie8fd7839806b4a6bcfac5ac1f984db7ab282c3b5
Reviewed-on: https://go-review.googlesource.com/41150
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: default avatarDavid Lazar <lazard@golang.org>
parent 39a132cb
......@@ -111,7 +111,8 @@ func caninl(fn *Node) {
return
}
// If marked "go:cgo_unsafe_args", don't inline
// If marked "go:cgo_unsafe_args", don't inline, since the
// function makes assumptions about its argument frame layout.
if fn.Func.Pragma&CgoUnsafeArgs != 0 {
reason = "marked go:cgo_unsafe_args"
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment