]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssagen: fix typo GrtCallerSP -> GetCallerSP
authoryongqijia <YongqiJia520@gmail.com>
Fri, 6 Feb 2026 08:48:19 +0000 (08:48 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 6 Feb 2026 17:40:40 +0000 (09:40 -0800)
Fix a typo in findIntrinsic function where "GrtCallerSP" should be
"GetCallerSP". This typo was in the condition checking for runtime
intrinsic functions that don't have definitions.

Fixes #77432

Change-Id: I8667a42456b4b2c4533dfcbca198b46793f71c89
GitHub-Last-Rev: 00ea4034177381ca7f851ae002487dba3dba20f8
GitHub-Pull-Request: golang/go#77476
Reviewed-on: https://go-review.googlesource.com/c/go/+/742680
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/ssagen/intrinsics.go

index dbdebd5aaf09cb6b1210e49735936d82290949ce..f6ece1fbe3123d9da3820a7035db4f53c1f80d4b 100644 (file)
@@ -2170,7 +2170,7 @@ func findIntrinsic(sym *types.Sym) intrinsicBuilder {
 
        fn := sym.Name
        if ssa.IntrinsicsDisable {
-               if pkg == "internal/runtime/sys" && (fn == "GetCallerPC" || fn == "GrtCallerSP" || fn == "GetClosurePtr") ||
+               if pkg == "internal/runtime/sys" && (fn == "GetCallerPC" || fn == "GetCallerSP" || fn == "GetClosurePtr") ||
                        pkg == simdPackage {
                        // These runtime functions don't have definitions, must be intrinsics.
                } else {