From: Ted Kremenek Date: Tue, 17 Feb 2009 17:48:52 +0000 (+0000) Subject: Add '_assert' to list of known panic functions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29ba6b432264f2b4baf8ccdde3f27b3c0f976918;p=clang 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 --- 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: