]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix comment for caninl
authorRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 16:30:32 +0000 (12:30 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 16:30:32 +0000 (12:30 -0400)
Was describing an old implementation.

R=ken2
CC=golang-dev
https://golang.org/cl/6553066

src/cmd/gc/inl.c

index 6dda362e7e31468ecc155b9c3488f5a9fec2037b..1328010b8de9decfefef3dc6f1ac39e42034a7f5 100644 (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)
 {