From: Zhongxing Xu Date: Fri, 20 Nov 2009 03:50:46 +0000 (+0000) Subject: Revert r89437 and add a comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00b1ad2d56f3e39f95c3f61bf511a531ab6a4fa5;p=clang Revert r89437 and add a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89446 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }