aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-11-20 03:50:46 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-11-20 03:50:46 +0000
commit00b1ad2d56f3e39f95c3f61bf511a531ab6a4fa5 (patch)
treeb5ec78de21b4fdf2d4facccee439afebd5cec57a /lib/Analysis/GRExprEngine.cpp
parentd1abf673bf133bd779a94978286c92cef86d7d36 (diff)
Revert r89437 and add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 8f912c42ce..2b4b5ae1a5 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1278,7 +1278,8 @@ void GRExprEngine::EvalLocation(ExplodedNodeSet &Dst, Stmt *S,
ExplodedNode* Pred,
const GRState* state, SVal location,
const void *tag, bool isLoad) {
- if (Checkers.empty()) {
+ // Early checks for performance reason.
+ if (location.isUnknown() || Checkers.empty()) {
Dst.Add(Pred);
return;
}