]> granicus.if.org Git - clang/commitdiff
clean up code with new API.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 9 Apr 2009 07:01:16 +0000 (07:01 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 9 Apr 2009 07:01:16 +0000 (07:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68700 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 7996e0c6def781d4a5d53aca76a23ad3d4d3916b..1c596bb2b491615742f9749c472f90d2e00176e2 100644 (file)
@@ -2931,10 +2931,8 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
           // 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);