summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commitab0ae2139aa50c991cef7716b1661f62a9f07c7b (patch)
tree0265a8d392eed2c84444c394c54ef88199080c8b /clang/lib
parentfa559f46c443b68440a06fd6a41075726e6e2a46 (diff)
downloadbcm5719-llvm-ab0ae2139aa50c991cef7716b1661f62a9f07c7b.tar.gz
bcm5719-llvm-ab0ae2139aa50c991cef7716b1661f62a9f07c7b.zip
Revert r89437 and add a comment.
llvm-svn: 89446
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 8f912c42ce4..2b4b5ae1a5d 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud