summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@redhat.com>2019-02-18 12:07:12 +0000
committerSerge Guelton <sguelton@redhat.com>2019-02-18 12:07:12 +0000
commit6e0b562bf6e0e94e3ea6a755a9917b2725fd604d (patch)
tree5c1a6690c80fbcd1c43ae9d9ebdc21191f762f04 /clang/lib/Frontend/CompilerInvocation.cpp
parent515e7cdec04a4f77defecbc9453e11159b635ddf (diff)
downloadbcm5719-llvm-6e0b562bf6e0e94e3ea6a755a9917b2725fd604d.tar.gz
bcm5719-llvm-6e0b562bf6e0e94e3ea6a755a9917b2725fd604d.zip
[NFC] Make Optional<T> trivially copyable when T is trivially copyable
This is a follow-up to r354246 and a reimplementation of https://reviews.llvm.org/D57097?id=186600 that should not trigger any UB thanks to the use of an union. This may still be subject to the problem solved by std::launder, but I'm unsure how it interacts whith union. /me plans to revert if this triggers any relevant bot failure. At least this validates in Release mode with clang 6.0.1 and gcc 4.8.5. llvm-svn: 354264
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud