Do not try to perform lifetime-extension through conditional
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 23 Jul 2018 21:21:24 +0000 (21:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 23 Jul 2018 21:21:24 +0000 (21:21 +0000)
commit6a32c0589cd2b60bf599b8aede33c484ec359e7a
tree80a6de6092b8e4650e5cdb28444b5a8ea44b0c28
parentafe48f9d68e446829bed6ce72b319c915873809a
Do not try to perform lifetime-extension through conditional
expressions.

CodeGen can't cope with that yet. Instead, produce a "not supported"
warning for now and don't extend lifetime.

llvm-svn: 337744
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaInit.cpp
clang/test/SemaCXX/conditional-expr.cpp