From 726876b3850c49177658b18bb6d15acaa3213f8c Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 9 Apr 2009 06:56:25 +0000 Subject: [PATCH] clean up code with new API. llvm-svn: 68699 --- clang/lib/Analysis/GRExprEngine.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 7abb1a426234..7996e0c6def7 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -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(loc::SymbolVal(Sym)) - : cast(nonloc::SymbolVal(Sym)); + RightV = SVal::GetConjuredSymbolVal(SymMgr, + getStoreManager().getRegionManager(), B->getRHS(), Count); } // Simulate the effects of a "store": bind the value of the RHS