From: Aaron Ballman Date: Sat, 27 Jul 2013 03:34:50 +0000 (+0000) Subject: Using the function pointer instead of the function type; this allows us to re-enable... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6d0f4c8dd162b019681b60d06f7ad33500f4146;p=clang Using the function pointer instead of the function type; this allows us to re-enable a warning in MSVC by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187292 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/MemRegion.cpp b/lib/StaticAnalyzer/Core/MemRegion.cpp index 3c9e9e4564..9051d5a13e 100644 --- a/lib/StaticAnalyzer/Core/MemRegion.cpp +++ b/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -981,7 +981,7 @@ MemRegionManager::getCXXBaseObjectRegion(const CXXRecordDecl *RD, bool IsVirtual) { if (isa(Super)) { assert(isValidBaseClass(RD, dyn_cast(Super), IsVirtual)); - (void)isValidBaseClass; + (void)&isValidBaseClass; if (IsVirtual) { // Virtual base regions should not be layered, since the layout rules