Commit 031b389a authored by Russ Cox's avatar Russ Cox

cmd/gc: fix comment for caninl

Was describing an old implementation.

R=ken2
CC=golang-dev
https://golang.org/cl/6553066
parent e4278862
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment