mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
cmd/compile: Remove unused 'NoInline' field from CallExpr stucture
Remove the 'NoInline' field from CallExpr stucture, as it's no longer used after enabling of tail call inlining. Change-Id: Ief3ada9938589e7a2f181582ef2758ebc4d03aad Reviewed-on: https://go-review.googlesource.com/c/go/+/655816 Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
dceb77a336
commit
3033ef0016
@ -786,7 +786,7 @@ func inlineCallCheck(callerfn *ir.Func, call *ir.CallExpr) (bool, bool) {
|
|||||||
if call.Op() != ir.OCALLFUNC {
|
if call.Op() != ir.OCALLFUNC {
|
||||||
return false, false
|
return false, false
|
||||||
}
|
}
|
||||||
if call.GoDefer || call.NoInline {
|
if call.GoDefer {
|
||||||
return false, false
|
return false, false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +191,6 @@ type CallExpr struct {
|
|||||||
KeepAlive []*Name // vars to be kept alive until call returns
|
KeepAlive []*Name // vars to be kept alive until call returns
|
||||||
IsDDD bool
|
IsDDD bool
|
||||||
GoDefer bool // whether this call is part of a go or defer statement
|
GoDefer bool // whether this call is part of a go or defer statement
|
||||||
NoInline bool // whether this call must not be inlined
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewCallExpr(pos src.XPos, op Op, fun Node, args []Node) *CallExpr {
|
func NewCallExpr(pos src.XPos, op Op, fun Node, args []Node) *CallExpr {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user