From 00b1ad2d56f3e39f95c3f61bf511a531ab6a4fa5 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Fri, 20 Nov 2009 03:50:46 +0000 Subject: [PATCH] Revert r89437 and add a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89446 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/GRExprEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.1