diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-17 17:48:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-17 17:48:52 +0000 |
commit | 29ba6b432264f2b4baf8ccdde3f27b3c0f976918 (patch) | |
tree | a728732ab5b80984d55c5751d525fb7200ce68ac /lib/Analysis/GRExprEngine.cpp | |
parent | 61a3778c81c8d3e91f19479b300336f23ac991d4 (diff) |
Add '_assert' to list of known panic functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 1a7f35960c..0f8c56b1a2 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1213,7 +1213,7 @@ void GRExprEngine::VisitCallRec(CallExpr* CE, NodeTy* Pred, } } break; - + case 6: if (!memcmp(s, "Assert", 6)) { Builder->BuildSinks = true; @@ -1231,7 +1231,9 @@ void GRExprEngine::VisitCallRec(CallExpr* CE, NodeTy* Pred, break; case 8: - if (!memcmp(s ,"db_error", 8)) Builder->BuildSinks = true; + if (!memcmp(s ,"db_error", 8) || + !memcmp(s, "__assert", 8)) + Builder->BuildSinks = true; break; case 12: |