From: Russ Cox Date: Mon, 24 Sep 2012 16:30:32 +0000 (-0400) Subject: cmd/gc: fix comment for caninl X-Git-Tag: go1.1rc2~2353 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=031b389ac1456981f34f70b3cfd1ccc10b5f3d49;p=gostls13.git cmd/gc: fix comment for caninl Was describing an old implementation. R=ken2 CC=golang-dev https://golang.org/cl/6553066 --- diff --git a/src/cmd/gc/inl.c b/src/cmd/gc/inl.c index 6dda362e7e..1328010b8d 100644 --- a/src/cmd/gc/inl.c +++ b/src/cmd/gc/inl.c @@ -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) {