]> git.lizzy.rs Git - rust.git/commit
Avoid an extra alloca/memcpy when auto-ref'ing fat pointers
authorBjörn Steinbrink <bsteinbr@gmail.com>
Wed, 26 Aug 2015 17:41:27 +0000 (19:41 +0200)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Wed, 26 Aug 2015 17:41:27 +0000 (19:41 +0200)
commit05d36965dff534d5976d4b3d7c443813992bdec7
treeff74d163b540021ef51d0c5ca9c137fec2630fa1
parentef3255b063a28ef1ed8346192325cfac66398739
Avoid an extra alloca/memcpy when auto-ref'ing fat pointers

auto_ref() handles fat pointers just fine and unlike ref_fat_ptr() does so
without creating an unnecessary copy of the pointer.
src/librustc_trans/trans/expr.rs