You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using go1.5beta3.
Simple functions with dead sections that would normally be inlined should be inlined.
Example:
package foo
import"fmt"constdebug=falsefuncFoo(a, bint) int {
ifdebug {
// This section is never usedfmt.Println()
}
returna+b
}
funcBar(a, bint) int {
returna+b
}
However, only Bar is inlined:
$ go build -gcflags=-m
./foo.go:15: can inline Bar
The text was updated successfully, but these errors were encountered:
Using go1.5beta3.
Simple functions with dead sections that would normally be inlined should be inlined.
Example:
However, only Bar is inlined:
The text was updated successfully, but these errors were encountered: