]> granicus.if.org Git - clang/commitdiff
Fixed unused variable warning.
authorTed Kremenek <kremenek@apple.com>
Thu, 2 Sep 2010 00:34:30 +0000 (00:34 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 2 Sep 2010 00:34:30 +0000 (00:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112784 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/RegionStore.cpp

index a2019d7a3c2c3017fe938ba4b64e3b496e65cb92..1a3eded7cb066daad146cd349011b99fa25533fe 100644 (file)
@@ -1089,7 +1089,7 @@ SVal RegionStoreManager::RetrieveElement(Store store,
   }
   
   // Check for loads from a code text region.  For such loads, just give up.
-  if (const CodeTextRegion *cR = dyn_cast<CodeTextRegion>(superR))
+  if (isa<CodeTextRegion>(superR))
     return UnknownVal();
 
   // Handle the case where we are indexing into a larger scalar object.