]> git.lizzy.rs Git - rust.git/commit
Auto merge of #34141 - eddyb:trans-abi-memcpy, r=nikomatsakis
authorbors <bors@rust-lang.org>
Tue, 7 Jun 2016 21:45:39 +0000 (14:45 -0700)
committerbors <bors@rust-lang.org>
Tue, 7 Jun 2016 21:45:39 +0000 (14:45 -0700)
commitec872dc8a3f008299ca1508105ee064d1f0f0367
treea143dd587358cf577ae7465ce4d67e9505c02694
parent39a523ba134c86df449bccd903313fc5e7b6f6c3
parente252865b744568649c3ecfcf8ac02bb6f73d7fc6
Auto merge of #34141 - eddyb:trans-abi-memcpy, r=nikomatsakis

trans: always use a memcpy for ABI argument/return casts.

When storing incoming arguments or values returned by call/invoke, always do a `memcpy` from a temporary of the cast type, if there is an ABI cast.
While Clang has gotten smarter ([store](https://godbolt.org/g/EphFuK) vs [memcpy](https://godbolt.org/g/5dikH9)), a `memcpy` will always work.
This is what @dotdash has wanted to do all along, and it fixes #32049.