]> granicus.if.org Git - clang/commit
Fix some cases of incorrect handling of lifetime extended temporaries.
authorManuel Klimek <klimek@google.com>
Wed, 30 Jul 2014 08:34:42 +0000 (08:34 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 30 Jul 2014 08:34:42 +0000 (08:34 +0000)
commit00151dc7f17c51f2374980021f2935904d2b0fc7
treeb72008c55a7e9bfdd0246875e8db84183ae7f056
parent529ef5ef773c8e634eefebf79faf2f4f4d249816
Fix some cases of incorrect handling of lifetime extended temporaries.

MaterializeTemporaryExpr already contains information about the lifetime
of the temporary; if the lifetime is not the full statement, we do not
want to emit a destructor at the end of the full statement for it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214292 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Analysis/cfg.cpp