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)
commitb0042c414e0296b9d3e9cd9b256b63ef28571f1e
treeaa25c70f1a343f776f0a385c0b95d16a39f11670
parent3b6c466e961ad97b75a1df79624fe1bc8db02b40
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.

llvm-svn: 214292
clang/lib/Analysis/CFG.cpp
clang/test/Analysis/cfg.cpp