From 6d35b412fc0289681f320acc389f7a83066ec9e2 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 21 Feb 2013 04:40:10 +0000 Subject: [PATCH] StaticAnalyzer/Core: Suppress warnings. [-Wunused-variable, -Wunused-function] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175721 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/MemRegion.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/StaticAnalyzer/Core/MemRegion.cpp b/lib/StaticAnalyzer/Core/MemRegion.cpp index e59504dfe3..e67297d86b 100644 --- a/lib/StaticAnalyzer/Core/MemRegion.cpp +++ b/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -915,8 +915,9 @@ MemRegionManager::getCXXBaseObjectRegion(const CXXRecordDecl *RD, bool IsVirtual) { RD = RD->getCanonicalDecl(); - if (const TypedValueRegion *TVR = dyn_cast(Super)) { - assert(isValidBaseClass(RD, TVR, IsVirtual)); + if (isa(Super)) { + assert(isValidBaseClass(RD, dyn_cast(Super), IsVirtual)); + (void)isValidBaseClass; if (IsVirtual) { // Virtual base regions should not be layered, since the layout rules -- 2.40.0