aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/devirtualize
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2024-08-19 00:07:37 +0300
committerGopher Robot <gobot@golang.org>2024-08-19 19:09:04 +0000
commitd5f7da79870800ac2f7c2a68501f73a83d481d16 (patch)
treea55ef726fd71e6a9ebe82ecd42966f8832378515 /src/cmd/compile/internal/devirtualize
parent433c1d3b4ab41fa4272bd61f8ad2918ccd1e390d (diff)
downloadgo-d5f7da79870800ac2f7c2a68501f73a83d481d16.tar.xz
all: remove duplicated words in comments
Change-Id: Id991ec0826a4e2857f00330b4b7ff2b71907b789 Reviewed-on: https://go-review.googlesource.com/c/go/+/606615 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/compile/internal/devirtualize')
-rw-r--r--src/cmd/compile/internal/devirtualize/devirtualize.go2
-rw-r--r--src/cmd/compile/internal/devirtualize/pgo.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/devirtualize/devirtualize.go b/src/cmd/compile/internal/devirtualize/devirtualize.go
index 5d1b952627..372d058094 100644
--- a/src/cmd/compile/internal/devirtualize/devirtualize.go
+++ b/src/cmd/compile/internal/devirtualize/devirtualize.go
@@ -63,7 +63,7 @@ func StaticCall(call *ir.CallExpr) {
// dictionary parameter. We could devirtualize this call if we
// could derive an appropriate dictionary argument.
//
- // TODO(mdempsky): If typ has has a promoted non-generic method,
+ // TODO(mdempsky): If typ has a promoted non-generic method,
// then that method won't require a dictionary argument. We could
// still devirtualize those calls.
//
diff --git a/src/cmd/compile/internal/devirtualize/pgo.go b/src/cmd/compile/internal/devirtualize/pgo.go
index 783940cbc2..01677d82b6 100644
--- a/src/cmd/compile/internal/devirtualize/pgo.go
+++ b/src/cmd/compile/internal/devirtualize/pgo.go
@@ -242,7 +242,7 @@ func maybeDevirtualizeFunctionCall(p *pgoir.Profile, fn *ir.Func, call *ir.CallE
}
// runtime.memhash_varlen does not look like a closure, but it uses
// runtime.getclosureptr to access data encoded by callers, which are
- // are generated by cmd/compile/internal/reflectdata.genhash.
+ // generated by cmd/compile/internal/reflectdata.genhash.
if callee.Sym().Pkg.Path == "runtime" && callee.Sym().Name == "memhash_varlen" {
if base.Debug.PGODebug >= 3 {
fmt.Printf("callee %s is a closure (runtime.memhash_varlen), skipping\n", ir.FuncName(callee))