From: Jordan Rose Date: Fri, 22 Feb 2013 01:08:00 +0000 (+0000) Subject: [analyzer] Fix buildbot by not reusing a variable name. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f40a23c934519ab99f4828fde9426b172356a08e;p=platform%2Fupstream%2Fllvm.git [analyzer] Fix buildbot by not reusing a variable name. llvm-svn: 175848 --- diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 60fd8d0..f15a02b 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -169,8 +169,8 @@ ProgramStateRef ExprEngine::getInitialState(const LocationContext *InitLoc) { /// temporary region, and replace the value of the expression with that. static ProgramStateRef createTemporaryRegionIfNeeded(ProgramStateRef State, const LocationContext *LC, - const Expr *E) { - SVal V = State->getSVal(E, LC); + const Expr *Ex) { + SVal V = State->getSVal(Ex, LC); if (V.getAs()) { ProgramStateManager &StateMgr = State->getStateManager(); @@ -180,7 +180,7 @@ static ProgramStateRef createTemporaryRegionIfNeeded(ProgramStateRef State, // We need to be careful about treating a derived type's value as // bindings for a base type. Start by stripping and recording base casts. SmallVector Casts; - const Expr *Inner = E->IgnoreParens(); + const Expr *Inner = Ex->IgnoreParens(); while (const CastExpr *CE = dyn_cast(Inner)) { if (CE->getCastKind() == CK_DerivedToBase || CE->getCastKind() == CK_UncheckedDerivedToBase) @@ -203,7 +203,7 @@ static ProgramStateRef createTemporaryRegionIfNeeded(ProgramStateRef State, Reg = StoreMgr.evalDerivedToBase(Reg, *I); } - State = State->BindExpr(E, LC, Reg); + State = State->BindExpr(Ex, LC, Reg); } return State;