summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2015-12-30 00:08:59 +0000
committerDevin Coughlin <dcoughlin@apple.com>2015-12-30 00:08:59 +0000
commit3369867aa7a7ec4016cad188c66c51ea2264dae4 (patch)
treeef9f8cf3c8697d8dea83225a22f9d6329dbf0108 /clang/lib/StaticAnalyzer
parentcda3bc206244de2b04ea3d20874d13ba53c47259 (diff)
downloadbcm5719-llvm-3369867aa7a7ec4016cad188c66c51ea2264dae4.tar.gz
bcm5719-llvm-3369867aa7a7ec4016cad188c66c51ea2264dae4.zip
[analyzer] Handle another Android assert function.
Android's assert can call both the __assert and __assert2 functions under the cover, but the NoReturnFunctionChecker does not handle the latter. This commit fixes that. A patch by Yury Gribov! Differential Revision: http://reviews.llvm.org/D15810 llvm-svn: 256605
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
index 8d0a060fc45..c1deadef420 100644
--- a/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
@@ -66,6 +66,7 @@ void NoReturnFunctionChecker::checkPostCall(const CallEvent &CE,
.Case("assfail", true)
.Case("db_error", true)
.Case("__assert", true)
+ .Case("__assert2", true)
// For the purpose of static analysis, we do not care that
// this MSVC function will return if the user decides to continue.
.Case("_wassert", true)
OpenPOWER on IntegriCloud