diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-14 23:25:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-14 23:25:49 +0000 |
commit | 76fdbde6a8d1c73d5e62c1adbd0678f92fe0ae57 (patch) | |
tree | b352f6800cc8cdb5da136d9c1f23f7d446941e72 | |
parent | 636e6ba3b6deacaddf1933c350e8fb142e1bb58f (diff) |
"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
-rw-r--r-- | Analysis/GRExprEngine.cpp | 10 |
1 files 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; } } } |