From 76fdbde6a8d1c73d5e62c1adbd0678f92fe0ae57 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 14 Mar 2008 23:25:49 +0000 Subject: [PATCH] "panic" has 5 letters, not 4. Bug pointed out by Nuno Lopes! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48377 91177308-0d34-0410-b5e6-96231b3b80d8 --- Analysis/GRExprEngine.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp index 0504e65abe..209a1d5b4f 100644 --- a/Analysis/GRExprEngine.cpp +++ b/Analysis/GRExprEngine.cpp @@ -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; } } } -- 2.40.0