1
0
mirror of https://github.com/golang/go synced 2024-11-22 16:34:47 -07:00

cmd/compile: reference ABIInternal memequal_varlen

memequal_varlen is put into a closure and is called in internal
ABI in the runtime. Emit an ABIInternal reference.

Updates #40724.

Change-Id: I914555f8188561882625e008b595389e50a3a167
Reviewed-on: https://go-review.googlesource.com/c/go/+/307233
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
Cherry Zhang 2021-04-04 12:15:13 -04:00
parent e617b2b0dd
commit 411860251e

View File

@ -353,7 +353,7 @@ func geneq(t *types.Type) *obj.LSym {
return closure
}
if memequalvarlen == nil {
memequalvarlen = typecheck.LookupRuntimeVar("memequal_varlen") // asm func
memequalvarlen = typecheck.LookupRuntimeFunc("memequal_varlen")
}
ot := 0
ot = objw.SymPtr(closure, ot, memequalvarlen, 0)