summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit783cd824873065524fda830f780caf6feb400db4 (patch)
tree3df1d520a929af5bb33cb4f85b98898fed7bddb6 /clang/lib
parent726876b3850c49177658b18bb6d15acaa3213f8c (diff)
downloadbcm5719-llvm-783cd824873065524fda830f780caf6feb400db4.tar.gz
bcm5719-llvm-783cd824873065524fda830f780caf6feb400db4.zip
clean up code with new API.
llvm-svn: 68700
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 7996e0c6def..1c596bb2b49 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud