[cfe-commits] r68700 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Zhongxing Xu xuzhongxing at gmail.com
Thu Apr 9 00:01:16 PDT 2009


Author: zhongxingxu
Date: Thu Apr  9 02:01:16 2009
New Revision: 68700

URL: http://llvm.org/viewvc/llvm-project?rev=68700&view=rev
Log:
clean up code with new API.

Modified:
    cfe/trunk/lib/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/lib/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngine.cpp?rev=68700&r1=68699&r2=68700&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Thu Apr  9 02:01:16 2009
@@ -2931,10 +2931,8 @@
           // The symbolic value is actually for the type of the left-hand side
           // expression, not the computation type, as this is the value the
           // LValue on the LHS will bind to.
-          SymbolRef Sym = SymMgr.getConjuredSymbol(B->getRHS(), LTy, Count);
-          LHSVal = Loc::IsLocType(LTy) 
-                 ? cast<SVal>(loc::SymbolVal(Sym)) 
-                 : cast<SVal>(nonloc::SymbolVal(Sym));
+          LHSVal = SVal::GetConjuredSymbolVal(SymMgr, 
+                getStoreManager().getRegionManager(), B->getRHS(), LTy, Count);
           
           // However, we need to convert the symbol to the computation type.
           Result = (LTy == CTy) ? LHSVal : EvalCast(LHSVal,CTy);





More information about the cfe-commits mailing list