r175848 - [analyzer] Fix buildbot by not reusing a variable name.

Jordan Rose jordan_rose at apple.com
Thu Feb 21 17:08:00 PST 2013


Author: jrose
Date: Thu Feb 21 19:08:00 2013
New Revision: 175848

URL: http://llvm.org/viewvc/llvm-project?rev=175848&view=rev
Log:
[analyzer] Fix buildbot by not reusing a variable name.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp?rev=175848&r1=175847&r2=175848&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Thu Feb 21 19:08:00 2013
@@ -169,8 +169,8 @@ ProgramStateRef ExprEngine::getInitialSt
 /// 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 createTemporaryRe
     // 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 createTemporaryRe
       Reg = StoreMgr.evalDerivedToBase(Reg, *I);
     }
 
-    State = State->BindExpr(E, LC, Reg);
+    State = State->BindExpr(Ex, LC, Reg);
   }
 
   return State;





More information about the cfe-commits mailing list