]> granicus.if.org Git - clang/commit
[analyzer] Refactor and cleanup IsCompleteType
authorAnna Zaks <ganna@apple.com>
Fri, 3 Oct 2014 21:49:03 +0000 (21:49 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 3 Oct 2014 21:49:03 +0000 (21:49 +0000)
commit6e140cfa7bbb7937b15399fd71b0eea5e44452b8
tree7886ad3deaaa3fe558a5af942dfa697fe849a2df
parent5a9b42fd92e7e412c396cf2aa584484211fee8aa
[analyzer] Refactor and cleanup IsCompleteType
There are three copies of IsCompleteType(...) functions in CSA and all
of them are incomplete (I experienced  crashes in some CSA's test cases).
I have replaced these function calls with Type::isIncompleteType() calls.

A patch by Aleksei Sidorin!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219026 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp
lib/StaticAnalyzer/Core/MemRegion.cpp
lib/StaticAnalyzer/Core/Store.cpp