Commit 3be4d598 authored by Nodir Turakulov's avatar Nodir Turakulov Committed by Brad Fitzpatrick

runtime: remove redundant type cast

  (*T)(unsafe.Pointer(&t)) === &t
for t of type T

Change-Id: I43c1aa436747dfa0bf4cb0d615da1647633f9536
Reviewed-on: https://go-review.googlesource.com/15656Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 6fed2a68
......@@ -284,7 +284,7 @@ func cfuncname(f *_func) *byte {
if datap == nil {
return nil
}
return (*byte)(unsafe.Pointer(&datap.pclntable[f.nameoff]))
return &datap.pclntable[f.nameoff]
}
func funcname(f *_func) string {
......
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