[cfe-commits] r70946 - /cfe/trunk/lib/Analysis/BasicStore.cpp
Ted Kremenek
kremenek at apple.com
Mon May 4 17:06:16 PDT 2009
Author: kremenek
Date: Mon May 4 19:06:16 2009
New Revision: 70946
URL: http://llvm.org/viewvc/llvm-project?rev=70946&view=rev
Log:
Fix unused variable warning
Modified:
cfe/trunk/lib/Analysis/BasicStore.cpp
Modified: cfe/trunk/lib/Analysis/BasicStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BasicStore.cpp?rev=70946&r1=70945&r2=70946&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BasicStore.cpp (original)
+++ cfe/trunk/lib/Analysis/BasicStore.cpp Mon May 4 19:06:16 2009
@@ -212,7 +212,7 @@
case loc::MemRegionKind: {
const MemRegion *R = cast<loc::MemRegionVal>(BaseL).getRegion();
- if (const ElementRegion *ER = dyn_cast<ElementRegion>(R)) {
+ if (isa<ElementRegion>(R)) {
// int x;
// char* y = (char*) &x;
// 'y' => ElementRegion(0, VarRegion('x'))
More information about the cfe-commits
mailing list