aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-04-09 07:01:16 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-04-09 07:01:16 +0000
commitcaf8ce1de656a33c365b1ec55316129b2252d217 (patch)
tree9cd21cbbd8a0063f4c445a3d8bc6599505472187 /lib/Analysis/GRExprEngine.cpp
parent9cafcd5ce5aba98ea32cc1ddb2a1a8ac6b8ca581 (diff)
clean up code with new API.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 7996e0c6de..1c596bb2b4 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -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);