From 921b0b5ef3d010f6c66abf6835ef60d7dcc9690b Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 5 May 2009 00:06:16 +0000 Subject: [PATCH] Fix unused variable warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70946 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BasicStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp index cf70733d43..598191f578 100644 --- a/lib/Analysis/BasicStore.cpp +++ b/lib/Analysis/BasicStore.cpp @@ -212,7 +212,7 @@ SVal BasicStoreManager::getLValueElement(const GRState* St, case loc::MemRegionKind: { const MemRegion *R = cast(BaseL).getRegion(); - if (const ElementRegion *ER = dyn_cast(R)) { + if (isa(R)) { // int x; // char* y = (char*) &x; // 'y' => ElementRegion(0, VarRegion('x'))