From: Ted Kremenek Date: Sat, 17 May 2008 00:42:01 +0000 (+0000) Subject: Micro-optimization when checking for panic functions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=489ecd59eff2602744cbd5089c48ad0d77963dfa;p=clang Micro-optimization when checking for panic functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51214 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index b59e0d357c..71d7ed3403 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -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.