]> granicus.if.org Git - clang/commit
[analyzer] Enable usage of temporaries in InitListExprs
authorPavel Labath <labath@google.com>
Fri, 9 Aug 2013 07:46:29 +0000 (07:46 +0000)
committerPavel Labath <labath@google.com>
Fri, 9 Aug 2013 07:46:29 +0000 (07:46 +0000)
commit6ebe9df900b79fd56a4db03b4f8aa6a180307a9d
treea576404c21364a9360eadb1e53b1f9d0b73a307c
parent8bdc92c01eeb345042b99650c6860b6aaa683ad8
[analyzer] Enable usage of temporaries in InitListExprs

Summary:
ExprEngine had code which specificaly disabled using CXXTempObjectRegions in
InitListExprs. This was a hack put in r168757 to silence a false positive.

The underlying problem seems to have been fixed in the mean time, as removing
this code doesn't seem to break anything. Therefore I propose to remove it and
solve PR16629 in the process.

Reviewers: jordan_rose

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1325

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188059 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/ExprEngineC.cpp
test/Analysis/temporaries.cpp