[cfe-commits] r51214 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Fri May 16 17:42:02 PDT 2008


Author: kremenek
Date: Fri May 16 19:42:01 2008
New Revision: 51214

URL: http://llvm.org/viewvc/llvm-project?rev=51214&view=rev
Log:
Micro-optimization when checking for panic functions.

Modified:
    cfe/trunk/lib/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=51214&r1=51213&r2=51214&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Fri May 16 19:42:01 2008
@@ -1091,7 +1091,10 @@
             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.





More information about the cfe-commits mailing list