]> granicus.if.org Git - clang/commit
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)
commitd61977eb486f9bc591c48a8266c41e6f90358d2b
tree40035cd7a7aeb2f4c9e66cd364dc054b657510f2
parent354438d88cbb857858ffcbde72d4723b8548ce0a
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337744 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/SemaCXX/conditional-expr.cpp