From: Zhongxing Xu Date: Thu, 9 Apr 2009 06:49:52 +0000 (+0000) Subject: stop using loc::SymbolVal. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea7c5ce4771d8307c91c5cde0160cad0d76c11f5;p=clang stop using loc::SymbolVal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68697 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 7c928f39ba..3809d593cf 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1599,8 +1599,9 @@ void GRExprEngine::VisitObjCForCollectionStmtAux(ObjCForCollectionStmt* S, QualType T = R->getRValueType(getContext()); assert (Loc::IsLocType(T)); unsigned Count = Builder->getCurrentBlockCount(); - loc::SymbolVal SymV(SymMgr.getConjuredSymbol(elem, T, Count)); - hasElems = hasElems.BindLoc(ElementV, SymV); + SymbolRef Sym = SymMgr.getConjuredSymbol(elem, T, Count); + SVal V = Loc::MakeVal(getStoreManager().getRegionManager().getSymbolicRegion(Sym)); + hasElems = hasElems.BindLoc(ElementV, V); // Bind the location to 'nil' on the false branch. SVal nilV = loc::ConcreteInt(getBasicVals().getValue(0, T));