]> granicus.if.org Git - clang/commit
[analyzer] Don't crash on array constructors and destructors.
authorJordan Rose <jordan_rose@apple.com>
Thu, 26 Jul 2012 20:04:25 +0000 (20:04 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 26 Jul 2012 20:04:25 +0000 (20:04 +0000)
commite460c46c5d602f65354cab0879c458890273591c
treec0ba29c283ea8d61013d2a911d59889ef43be43c
parent3a0a9e3e8bbaa45f3ca22b1e20b3beaac0f5861e
[analyzer] Don't crash on array constructors and destructors.

This workaround is fairly lame: we simulate the first element's constructor
and destructor and rely on the region invalidation to "initialize" the rest
of the elements.

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