From: Zhongxing Xu Date: Mon, 20 Apr 2009 02:27:09 +0000 (+0000) Subject: As we now have ValueManager as the new value factory, we do not need factory X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a095fb9f9962e3ea668b046c314555478fd9aa6;p=clang As we now have ValueManager as the new value factory, we do not need factory methods of SVal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69565 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/SVals.cpp b/lib/Analysis/SVals.cpp index e911d2c097..240280f68a 100644 --- a/lib/Analysis/SVals.cpp +++ b/lib/Analysis/SVals.cpp @@ -345,7 +345,7 @@ SVal ValueManager::getConjuredSymbolVal(const Expr* E, QualType T, SVal ValueManager::getFunctionPointer(const FunctionDecl* FD) { CodeTextRegion* R = MemMgr.getCodeTextRegion(FD, Context.getPointerType(FD->getType())); - return Loc::MakeVal(R); + return loc::MemRegionVal(R); } nonloc::LocAsInteger nonloc::LocAsInteger::Make(BasicValueFactory& Vals, Loc V,