aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/escape/escape.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-01-17 00:30:32 -0800
committerMatthew Dempsky <mdempsky@google.com>2021-01-17 11:14:51 +0000
commit87845d14f9822c104cc192c8f7858a2a24d0029f (patch)
tree9b6f10de2e76159f7027fe419eb3f4cb75390908 /src/cmd/compile/internal/escape/escape.go
parente3027c6828230d01089afec0ab958040ba326abc (diff)
downloadgo-87845d14f9822c104cc192c8f7858a2a24d0029f.tar.gz
[dev.regabi] cmd/compile: add ir.TailCallStmt
This CL splits out ORETJMP as a new TailCallStmt node, separate from the other BranchStmt nodes. In doing so, this allows us to change it from identifying a function by *types.Sym to identifying one by directly pointing to the *ir.Func. While here, also rename the operation to OTAILCALL. Passes toolstash -cmp. Change-Id: I273e6ea5d92bf3005ae02fb59b3240a190a6cf1b Reviewed-on: https://go-review.googlesource.com/c/go/+/284227 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/escape/escape.go')
-rw-r--r--src/cmd/compile/internal/escape/escape.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/escape/escape.go b/src/cmd/compile/internal/escape/escape.go
index 26420b820a..5ee6d4f498 100644
--- a/src/cmd/compile/internal/escape/escape.go
+++ b/src/cmd/compile/internal/escape/escape.go
@@ -534,8 +534,8 @@ func (e *escape) stmt(n ir.Node) {
e.stmts(n.Call.Init())
e.call(nil, n.Call, n)
- case ir.ORETJMP:
- // TODO(mdempsky): What do? esc.go just ignores it.
+ case ir.OTAILCALL:
+ // TODO(mdempsky): Treat like a normal call? esc.go used to just ignore it.
}
}