From 411860251eb91b284efb901264a9c46d26b588e3 Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Sun, 4 Apr 2021 12:15:13 -0400 Subject: [PATCH] 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 Reviewed-by: Than McIntosh Reviewed-by: Austin Clements --- src/cmd/compile/internal/reflectdata/alg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/reflectdata/alg.go b/src/cmd/compile/internal/reflectdata/alg.go index 9f2efbc3a0a..d12d9ca0a7d 100644 --- a/src/cmd/compile/internal/reflectdata/alg.go +++ b/src/cmd/compile/internal/reflectdata/alg.go @@ -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)