]> granicus.if.org Git - clang/commitdiff
As we now have ValueManager as the new value factory, we do not need factory
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 20 Apr 2009 02:27:09 +0000 (02:27 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 20 Apr 2009 02:27:09 +0000 (02:27 +0000)
methods of SVal.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69565 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/SVals.cpp

index e911d2c0979ee01b5b3bb0b65dfa261f4e2d1475..240280f68a744d053c960050ca103a2f7ca9130f 100644 (file)
@@ -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,