]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: minor cleanup in inl
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 24 Apr 2016 21:09:03 +0000 (14:09 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 25 Apr 2016 02:13:58 +0000 (02:13 +0000)
commit758431fe8c2906690a209e33531d8b95e381c8c1
treed2d312f24874b42e8556ed5b8a10222e42ab5bdc
parent1da62afeef1fdfb822afc4af0feb2eece10d8c7d
cmd/compile: minor cleanup in inl

* Make budget an int32 to avoid needless conversions.
* Introduce some temporary variables to reduce repetition.
* If ... args are present, they will be the last argument
  to the function. No need to scan all arguments.

Passes toolstash -cmp.

Change-Id: I55203609f5d2f25a4e238cd48c63214651120cfc
Reviewed-on: https://go-review.googlesource.com/22421
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/gc/type.go