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) ...@@ -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)
{ {
......
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