aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-17 00:42:01 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-17 00:42:01 +0000
commit489ecd59eff2602744cbd5089c48ad0d77963dfa (patch)
tree057cd87af8284813b4d4902cbcefbc4039f5aa13 /lib/Analysis/GRExprEngine.cpp
parent05a91120dea3d17061da777a7a18c18e0e0ce975 (diff)
Micro-optimization when checking for panic functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp5
1 files changed, 4 insertions, 1 deletions
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.