]> granicus.if.org Git - clang/commitdiff
remove unused variable.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 21 Aug 2010 06:51:45 +0000 (06:51 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 21 Aug 2010 06:51:45 +0000 (06:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111731 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/RegionStore.cpp

index c8c392bfaf21bbe5a69bdbcb5acea75f8b28ce65..d93d364eec379eb2981d8824adcb8a6dee56f80a 100644 (file)
@@ -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,