summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/Store.cpp
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
commit4b35a2ed0841798c90ea283f5d5fe7ba3a58f146 (patch)
tree9ecb1ed274ae2cccb90ac96846cdac0738489c0d /clang/lib/Analysis/Store.cpp
parentcbc6ebb6fd4e1a218d21cdad75dc012d43be2b93 (diff)
downloadbcm5719-llvm-4b35a2ed0841798c90ea283f5d5fe7ba3a58f146.tar.gz
bcm5719-llvm-4b35a2ed0841798c90ea283f5d5fe7ba3a58f146.zip
Only fetch the ASTContext object within the assertion.
llvm-svn: 89375
Diffstat (limited to 'clang/lib/Analysis/Store.cpp')
-rw-r--r--clang/lib/Analysis/Store.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/Store.cpp b/clang/lib/Analysis/Store.cpp
index bbf0c46bf29..4183a73158b 100644
--- a/clang/lib/Analysis/Store.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud