]> granicus.if.org Git - clang/commitdiff
Added ziperr as a panic function. Eventually inter-procedural analysis
authorTed Kremenek <kremenek@apple.com>
Thu, 1 May 2008 15:55:59 +0000 (15:55 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 1 May 2008 15:55:59 +0000 (15:55 +0000)
should catch this one easily.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index e10e9ae8f39ac9a8473a84ba8947e3382b6add9f..2a1aa5ec5fdcc01cf594efe55bcb66857e6d3a3a 100644 (file)
@@ -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: