mirror of
https://github.com/golang/go
synced 2024-11-26 12:58:06 -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:
parent
e617b2b0dd
commit
411860251e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user