mirror of
https://github.com/golang/go
synced 2024-11-20 07:24:40 -07:00
cmd/gc: fix comment for caninl
Was describing an old implementation. R=ken2 CC=golang-dev https://golang.org/cl/6553066
This commit is contained in:
parent
e42788628a
commit
031b389ac1
@ -111,10 +111,8 @@ typecheckinl(Node *fn)
|
|||||||
lineno = lno;
|
lineno = lno;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Caninl determines whether fn is inlineable. Currently that means:
|
// Caninl determines whether fn is inlineable.
|
||||||
// fn is exactly 1 statement, either a return or an assignment, and
|
// If so, caninl saves fn->nbody in fn->inl and substitutes it with a copy.
|
||||||
// some temporary constraints marked TODO. If fn is inlineable, saves
|
|
||||||
// fn->nbody in fn->inl and substitutes it with a copy.
|
|
||||||
void
|
void
|
||||||
caninl(Node *fn)
|
caninl(Node *fn)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user