]> granicus.if.org Git - clang/commitdiff
Revert r89437 and add a comment.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 20 Nov 2009 03:50:46 +0000 (03:50 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 20 Nov 2009 03:50:46 +0000 (03:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 8f912c42ce4c58a8c5b1732524fcf9b858fc443b..2b4b5ae1a5d5f790f94269a435e1f95f3943ce5e 100644 (file)
@@ -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;
   }