aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-08-10 10:35:07 +0000
committerGitHub <noreply@github.com>2022-08-10 10:35:07 +0000
commit7027e5c21ae6b8cb1ea2222e55960f1587071d14 (patch)
tree06b15017e8448050efdab82eef322b1918b22b29 /gcc/rust/backend/rust-compile-expr.h
parent7c3766ccfce1b90be8facf1124303519be93e66a (diff)
parent71b5bc8705c789fa61ad0d7858441da861213356 (diff)
downloadgcc-7027e5c21ae6b8cb1ea2222e55960f1587071d14.zip
gcc-7027e5c21ae6b8cb1ea2222e55960f1587071d14.tar.gz
gcc-7027e5c21ae6b8cb1ea2222e55960f1587071d14.tar.bz2
Merge #1452
1452: transmute: Fix behavior by always performing the raw copy r=CohenArthur a=CohenArthur This desugars calls to transmute the following way: `transmute::<T1, T2>(value)` -> `*((T2 *) &value)` This always ends up being optimized into a simple copy for small types and a memcpy for larger types. Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions