diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-17 00:42:01 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-17 00:42:01 +0000 |
commit | 489ecd59eff2602744cbd5089c48ad0d77963dfa (patch) | |
tree | 057cd87af8284813b4d4902cbcefbc4039f5aa13 /lib/Analysis/GRExprEngine.cpp | |
parent | 05a91120dea3d17061da777a7a18c18e0e0ce975 (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.cpp | 5 |
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. |