From: Ted Kremenek Date: Thu, 1 May 2008 15:55:59 +0000 (+0000) Subject: Added ziperr as a panic function. Eventually inter-procedural analysis X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7122d5dd2aba01a59259f1f659bf59eca30d7e6;p=clang Added ziperr as a panic function. Eventually inter-procedural analysis should catch this one easily. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50526 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index e10e9ae8f3..2a1aa5ec5f 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1083,6 +1083,11 @@ void GRExprEngine::VisitCall(CallExpr* CE, NodeTy* Pred, case 6: if (!memcmp(s, "Assert", 6)) Builder->BuildSinks = true; + + // FIXME: This is just a wrapper around throwing an exception. + // Eventually inter-procedural analysis should handle this easily. + if (!memcmp(s, "ziperr", 6)) Builder->BuildSinks = true; + break; case 7: