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

lib/Analysis/GRExprEngine.cpp

index 7abb1a426234b8b45dc44b43ffad3317d3d5164f..7996e0c6def781d4a5d53aca76a23ad3d4d3916b 100644 (file)
@@ -2758,11 +2758,9 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
               && (Loc::IsLocType(T) || 
                   (T->isScalarType() && T->isIntegerType()))) {
             unsigned Count = Builder->getCurrentBlockCount();
-            SymbolRef Sym = SymMgr.getConjuredSymbol(B->getRHS(), Count);
             
-            RightV = Loc::IsLocType(T) 
-                   ? cast<SVal>(loc::SymbolVal(Sym)) 
-                   : cast<SVal>(nonloc::SymbolVal(Sym));            
+            RightV = SVal::GetConjuredSymbolVal(SymMgr, 
+                      getStoreManager().getRegionManager(), B->getRHS(), Count);
           }
           
           // Simulate the effects of a "store":  bind the value of the RHS