]> granicus.if.org Git - clang/commit
[analyzer] Remove incorrect workaround for unimplemented temporary destructors.
authorJordan Rose <jordan_rose@apple.com>
Tue, 1 Apr 2014 16:39:59 +0000 (16:39 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 1 Apr 2014 16:39:59 +0000 (16:39 +0000)
commit06445783fadc367e5cf22d79d3708460183c7904
tree85b035518a1d02d2b6e7e4f6c46f994d9e088e01
parentefcdb4a859e325b772024167553b6b8bfc794ac5
[analyzer] Remove incorrect workaround for unimplemented temporary destructors.

If we're trying to get the zero element region of something that's not a region,
we should be returning UnknownVal, which is what ProgramState::getLValue will
do for us.

Patch by Alex McCarthy!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205327 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
test/Analysis/dtor-cxx11.cpp