aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-08-21 06:51:45 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-08-21 06:51:45 +0000
commit61453402c3119bbd170ee6eabc43848222ad9a50 (patch)
treeb2d8ade2d6e9bc48e42bc9f68bc9b5145e275651 /lib/Checker/RegionStore.cpp
parent0b46b1bc647db68ed3511b53e96699cfe14658fd (diff)
remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/RegionStore.cpp')
-rw-r--r--lib/Checker/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/RegionStore.cpp b/lib/Checker/RegionStore.cpp
index c8c392bfaf..d93d364eec 100644
--- a/lib/Checker/RegionStore.cpp
+++ b/lib/Checker/RegionStore.cpp
@@ -666,7 +666,7 @@ void InvalidateRegionsWorker::VisitBaseRegion(const MemRegion *baseR) {
QualType T = TR->getValueType();
// Invalidate the binding.
- if (const RecordType *RT = T->getAsStructureType()) {
+ if (T->isStructureType()) {
// Invalidate the region by setting its default value to
// conjured symbol. The type of the symbol is irrelavant.
DefinedOrUnknownSVal V = ValMgr.getConjuredSymbolVal(baseR, Ex, Ctx.IntTy,