aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-19 19:04:08 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-19 19:04:08 +0000
commit27e05edb8a62c77e2c7512989da663777ea905e3 (patch)
tree2510f9cb688f3f3bb3f875043e6aa6f1f2548904
parent6049762c80caa0e074aa1eae6b3386fea758b0cb (diff)
Only fetch the ASTContext object within the assertion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89375 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/Store.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/Store.cpp b/lib/Analysis/Store.cpp
index bbf0c46bf2..4183a73158 100644
--- a/lib/Analysis/Store.cpp
+++ b/lib/Analysis/Store.cpp
@@ -194,13 +194,11 @@ const MemRegion *StoreManager::CastRegion(const MemRegion *R, QualType CastToTy)
/// 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;
}