diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-09 07:01:16 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-09 07:01:16 +0000 |
| commit | 783cd824873065524fda830f780caf6feb400db4 (patch) | |
| tree | 3df1d520a929af5bb33cb4f85b98898fed7bddb6 /clang/lib | |
| parent | 726876b3850c49177658b18bb6d15acaa3213f8c (diff) | |
| download | bcm5719-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.cpp | 6 |
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); |

