]> granicus.if.org Git - clang/commitdiff
"panic" has 5 letters, not 4. Bug pointed out by Nuno Lopes!
authorTed Kremenek <kremenek@apple.com>
Fri, 14 Mar 2008 23:25:49 +0000 (23:25 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 14 Mar 2008 23:25:49 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48377 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRExprEngine.cpp

index 0504e65abee831d0629dc6d8384ed3a2ecf9355f..209a1d5b4fcd9662d3eb38bc9d09d6d15470792a 100644 (file)
@@ -513,10 +513,14 @@ void GRExprEngine::VisitCall(CallExpr* CE, NodeTy* Pred,
         switch (n) {
           default:
             break;
+            
           case 4:
-            if (!memcmp(s, "exit", 4) || !memcmp(s, "panic", 4)) {
-              Builder->BuildSinks = true; break;
-            }
+            if (!memcmp(s, "exit", 4)) Builder->BuildSinks = true;
+            break;
+
+          case 5:
+            if (!memcmp(s, "panic", 5)) Builder->BuildSinks = true;
+            break;
         }
       }
     }