aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2018-09-10 21:33:45 +0000
committerJF Bastien <jfbastien@apple.com>2018-09-10 21:33:45 +0000
commit448c18403521385408065a08d01ae7548d4efe31 (patch)
tree40f324233128d036b6a9cb1c7e18b03c91885033 /llvm/lib/CodeGen/MachineFunctionPass.cpp
parentb789458e0cc22adf41ba7fe5f31090a5c71056e3 (diff)
downloadllvm-448c18403521385408065a08d01ae7548d4efe31.zip
llvm-448c18403521385408065a08d01ae7548d4efe31.tar.gz
llvm-448c18403521385408065a08d01ae7548d4efe31.tar.bz2
[ADT] bit_cast: check for is_trivially_copyable more portably
Summary: It turns out that isPodLike isn't a good workaround for is_trivially_copyable for bit_cast's purpose. In D51872 Louis points out that tuple and pair really aren't a good fit, and for bit_cast I want to capture array. This patch instead checks is_trivially_copyable directly in bit_cast for all but GCC 4.x. In GCC 4.x developers only check for sizeof match, which means any mistake they make will succeed locally and fail on the bots. Realistically that's few developers and they'll be left behind once we upgrade past C++11. This will allow using bit_cast with std::array. Subscribers: dexonsmith, llvm-commits, ldionne, rsmith Differential Revision: https://reviews.llvm.org/D51888 llvm-svn: 341865
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions