[cfe-commits] r89375 - /cfe/trunk/lib/Analysis/Store.cpp

Ted Kremenek kremenek at apple.com
Thu Nov 19 11:04:08 PST 2009


Author: kremenek
Date: Thu Nov 19 13:04:08 2009
New Revision: 89375

URL: http://llvm.org/viewvc/llvm-project?rev=89375&view=rev
Log:
Only fetch the ASTContext object within the assertion.

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

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

==============================================================================
--- cfe/trunk/lib/Analysis/Store.cpp (original)
+++ cfe/trunk/lib/Analysis/Store.cpp Thu Nov 19 13:04:08 2009
@@ -194,13 +194,11 @@
 ///  as another region.
 SVal  StoreManager::CastRetrievedVal(SVal V, const TypedRegion *R,
                                      QualType castTy) {
-  ASTContext &Ctx = ValMgr.getContext();
-  (void) Ctx;
-
   if (castTy.isNull())
     return V;
   
-  assert(Ctx.hasSameUnqualifiedType(castTy, R->getValueType(Ctx)));
+  assert(ValMgr.getContext().hasSameUnqualifiedType(castTy,
+                                         R->getValueType(ValMgr.getContext())));
   return V;
 }
 





More information about the cfe-commits mailing list