aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-02-22 01:08:00 +0000
committerJordan Rose <jordan_rose@apple.com>2013-02-22 01:08:00 +0000
commit87193dac8f2c6c8f7ee1aa9eeb64622ec75c881b (patch)
tree4ce6e0586b1ef329faf0a8a762ca5c5aa30c9e29 /lib/StaticAnalyzer/Core/ExprEngine.cpp
parentc7d1ca52ae1f33a105ad1be217304f74a34c45f3 (diff)
[analyzer] Fix buildbot by not reusing a variable name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 60fd8d019e..f15a02be2b 100644
--- a/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/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<NonLoc>()) {
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<const CastExpr *, 4> Casts;
- const Expr *Inner = E->IgnoreParens();
+ const Expr *Inner = Ex->IgnoreParens();
while (const CastExpr *CE = dyn_cast<CastExpr>(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;