summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-07-17 22:24:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-07-17 22:24:09 +0000
commitd87aab939a07d832b226fc839b981d2b3be36802 (patch)
tree39750d3720a80b406d10c9998dceacc383829457 /clang/lib/Frontend/CompilerInvocation.cpp
parent3e22733698cdd8a0a26487df7430d243a81a3bfa (diff)
downloadbcm5719-llvm-d87aab939a07d832b226fc839b981d2b3be36802.tar.gz
bcm5719-llvm-d87aab939a07d832b226fc839b981d2b3be36802.zip
Restructure checking for, and warning on, lifetime extension.
This change implements C++ DR1696, which makes initialization of a reference member of a class from a temporary object ill-formed. The standard wording here is imprecise, but we interpret it as meaning that any time a mem-initializer would result in lifetime extension, the program is ill-formed. This reinstates r337226, reverted in r337255, with a fix for the InitializedEntity alignment problem that was breaking ARM buildbots. llvm-svn: 337329
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud