]> granicus.if.org Git - clang/commitdiff
Micro-optimization when checking for panic functions.
authorTed Kremenek <kremenek@apple.com>
Sat, 17 May 2008 00:42:01 +0000 (00:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 17 May 2008 00:42:01 +0000 (00:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51214 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index b59e0d357c315e86e7bc7ada74187b1d772e5edd..71d7ed34035564d076b950a465a9bf4cac19b622 100644 (file)
@@ -1091,7 +1091,10 @@ void GRExprEngine::VisitCall(CallExpr* CE, NodeTy* Pred,
             break;
           
           case 6:
-            if (!memcmp(s, "Assert", 6)) Builder->BuildSinks = true;
+            if (!memcmp(s, "Assert", 6)) {
+              Builder->BuildSinks = true;
+              break;
+            }
             
             // FIXME: This is just a wrapper around throwing an exception.
             //  Eventually inter-procedural analysis should handle this easily.