From 021887efe6927c6a572e836ff02a5d71912ee0e0 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 9 Apr 2009 07:04:45 +0000 Subject: [PATCH] clean up code with new API. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68701 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/GRSimpleVals.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp index 8e605ca4c7..dfc9d4eb1c 100644 --- a/lib/Analysis/GRSimpleVals.cpp +++ b/lib/Analysis/GRSimpleVals.cpp @@ -460,11 +460,9 @@ void GRSimpleVals::EvalCall(ExplodedNodeSet& Dst, QualType T = CE->getType(); if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) { unsigned Count = Builder.getCurrentBlockCount(); - SymbolRef Sym = Eng.getSymbolManager().getConjuredSymbol(CE, Count); - SVal X = Loc::IsLocType(CE->getType()) - ? cast(loc::SymbolVal(Sym)) - : cast(nonloc::SymbolVal(Sym)); + SVal X = SVal::GetConjuredSymbolVal(Eng.getSymbolManager(), + Eng.getStoreManager().getRegionManager(), CE, Count); St = StateMgr.BindExpr(St, CE, X, Eng.getCFG().isBlkExpr(CE), false); } -- 2.40.0