aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/RegionStore.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-16 05:16:03 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-16 05:16:03 +0000
commit52e4c60e31fee851e2988f7909aebf488e57fc12 (patch)
tree148e9de85b57e1fc8af4ce640b65d39eb3f18685 /lib/StaticAnalyzer/Core/RegionStore.cpp
parentc23f8570d1fe934a99e6d2f4cd156ed5cc17f826 (diff)
Refactor variables unused under non-assert builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/RegionStore.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/RegionStore.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/RegionStore.cpp b/lib/StaticAnalyzer/Core/RegionStore.cpp
index f27c51880b..30bb9243b0 100644
--- a/lib/StaticAnalyzer/Core/RegionStore.cpp
+++ b/lib/StaticAnalyzer/Core/RegionStore.cpp
@@ -1314,8 +1314,7 @@ SVal RegionStoreManager::getBindingForLazySymbol(const TypedValueRegion *R) {
SVal RegionStoreManager::getBindingForStruct(Store store,
const TypedValueRegion* R) {
- QualType T = R->getValueType();
- assert(T->isStructureOrClassType());
+ assert(R->getValueType()->isStructureOrClassType());
return svalBuilder.makeLazyCompoundVal(StoreRef(store, *this), R);
}