From: Zhongxing Xu Date: Sat, 21 Aug 2010 06:51:45 +0000 (+0000) Subject: remove unused variable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61453402c3119bbd170ee6eabc43848222ad9a50;p=clang remove unused variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111731 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,