Add '_assert' to list of known panic functions.

llvm-svn: 64772
This commit is contained in:
Ted Kremenek 2009-02-17 17:48:52 +00:00
parent c8f1ab5035
commit 852882ca97
1 changed files with 4 additions and 2 deletions

View File

@ -1213,7 +1213,7 @@ void GRExprEngine::VisitCallRec(CallExpr* CE, NodeTy* Pred,
} }
} }
break; break;
case 6: case 6:
if (!memcmp(s, "Assert", 6)) { if (!memcmp(s, "Assert", 6)) {
Builder->BuildSinks = true; Builder->BuildSinks = true;
@ -1231,7 +1231,9 @@ void GRExprEngine::VisitCallRec(CallExpr* CE, NodeTy* Pred,
break; break;
case 8: 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; break;
case 12: case 12: