r175721 - StaticAnalyzer/Core: Suppress warnings. [-Wunused-variable, -Wunused-function]
NAKAMURA Takumi
geek4civic at gmail.com
Wed Feb 20 20:40:10 PST 2013
Author: chapuni
Date: Wed Feb 20 22:40:10 2013
New Revision: 175721
URL: http://llvm.org/viewvc/llvm-project?rev=175721&view=rev
Log:
StaticAnalyzer/Core: Suppress warnings. [-Wunused-variable, -Wunused-function]
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp?rev=175721&r1=175720&r2=175721&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp Wed Feb 20 22:40:10 2013
@@ -915,8 +915,9 @@ MemRegionManager::getCXXBaseObjectRegion
bool IsVirtual) {
RD = RD->getCanonicalDecl();
- if (const TypedValueRegion *TVR = dyn_cast<TypedValueRegion>(Super)) {
- assert(isValidBaseClass(RD, TVR, IsVirtual));
+ if (isa<TypedValueRegion>(Super)) {
+ assert(isValidBaseClass(RD, dyn_cast<TypedValueRegion>(Super), IsVirtual));
+ (void)isValidBaseClass;
if (IsVirtual) {
// Virtual base regions should not be layered, since the layout rules
More information about the cfe-commits
mailing list