From: Anna Zaks Date: Mon, 5 Dec 2011 21:33:01 +0000 (+0000) Subject: [analyzer] Simplify the condition. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=084842d334fca296279262c2534f6aa31b1dfdbb;p=clang [analyzer] Simplify the condition. This is a fixup for r145832. The extra clauses do not matter after we remove the dependency on canReasonAbout(InitVal) in r145832. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145856 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/ExprEngineC.cpp b/lib/StaticAnalyzer/Core/ExprEngineC.cpp index 12b658eb2d..fadfdc40d7 100644 --- a/lib/StaticAnalyzer/Core/ExprEngineC.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngineC.cpp @@ -357,9 +357,7 @@ void ExprEngine::VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred, // Recover some path-sensitivity if a scalar value evaluated to // UnknownVal. - if ((InitVal.isUnknown()) && - !VD->getType()->isReferenceType() && - !Pred->getState()->isTainted(InitVal)) { + if (InitVal.isUnknown()) { InitVal = svalBuilder.getConjuredSymbolVal(NULL, InitEx, currentBuilderContext->getCurrentBlockCount()); }