]> Cypherpunks repositories - gostls13.git/commit
bytes: hoist error creation out of function
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 8 Feb 2019 16:57:46 +0000 (17:57 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 26 Feb 2019 22:57:25 +0000 (22:57 +0000)
commitef954a03eb9d4e8d19e1024db088095110e19a0b
tree2450f4bd960ec418c5b8d4d685efbf995e08f505
parentc55eeeb718b0dfd008f0d722c8b8d05f8b02d62b
bytes: hoist error creation out of function

generating frame information in errors will cause this
function to no longer be inlined.

Updates #29934.

Change-Id: I1d7bc11707f1872d7315f627bfb9a12afa41e358
Reviewed-on: https://go-review.googlesource.com/c/161760
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/bytes/buffer.go