]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix typo in comment in CL 358435
authorCherry Mui <cherryyz@google.com>
Mon, 25 Oct 2021 20:48:07 +0000 (16:48 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 25 Oct 2021 21:02:43 +0000 (21:02 +0000)
Change-Id: I0d8128668fc7a80b29aabc58dbc9a2929b889ec9
Reviewed-on: https://go-review.googlesource.com/c/go/+/358614
Trust: Cherry Mui <cherryyz@google.com>
Trust: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/compile/internal/ssa/regalloc.go

index 126973a6e136e5d4cc749521da1999354c817b32..91b04e99f42c3beaf3455330426b670fbef11096 100644 (file)
@@ -560,7 +560,7 @@ func isLeaf(f *Func) bool {
        for _, b := range f.Blocks {
                for _, v := range b.Values {
                        if v.Op.IsCall() && !v.Op.IsTailCall() {
-                               // tail call is not counted as it does not save retur PC or need a frame
+                               // tail call is not counted as it does not save the return PC or need a frame
                                return false
                        }
                }