1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:44:44 -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:
Russ Cox 2012-09-24 12:30:32 -04:00
parent e42788628a
commit 031b389ac1

View File

@ -111,10 +111,8 @@ typecheckinl(Node *fn)
lineno = lno;
}
// Caninl determines whether fn is inlineable. Currently that means:
// fn is exactly 1 statement, either a return or an assignment, and
// some temporary constraints marked TODO. If fn is inlineable, saves
// fn->nbody in fn->inl and substitutes it with a copy.
// Caninl determines whether fn is inlineable.
// If so, caninl saves fn->nbody in fn->inl and substitutes it with a copy.
void
caninl(Node *fn)
{