[cfe-commits] r69565 - /cfe/trunk/lib/Analysis/SVals.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sun Apr 19 19:27:09 PDT 2009


Author: zhongxingxu
Date: Sun Apr 19 21:27:09 2009
New Revision: 69565

URL: http://llvm.org/viewvc/llvm-project?rev=69565&view=rev
Log:
As we now have ValueManager as the new value factory, we do not need factory
methods of SVal.

Modified:
    cfe/trunk/lib/Analysis/SVals.cpp

Modified: cfe/trunk/lib/Analysis/SVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/SVals.cpp?rev=69565&r1=69564&r2=69565&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/SVals.cpp (original)
+++ cfe/trunk/lib/Analysis/SVals.cpp Sun Apr 19 21:27:09 2009
@@ -345,7 +345,7 @@
 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,





More information about the cfe-commits mailing list