r187292 - Using the function pointer instead of the function type; this allows us to re-enable a warning in MSVC by default.

Aaron Ballman aaron at aaronballman.com
Fri Jul 26 20:34:50 PDT 2013


Author: aaronballman
Date: Fri Jul 26 22:34:50 2013
New Revision: 187292

URL: http://llvm.org/viewvc/llvm-project?rev=187292&view=rev
Log:
Using the function pointer instead of the function type; this allows us to re-enable a warning in MSVC by default.

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=187292&r1=187291&r2=187292&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp Fri Jul 26 22:34:50 2013
@@ -981,7 +981,7 @@ MemRegionManager::getCXXBaseObjectRegion
                                          bool IsVirtual) {
   if (isa<TypedValueRegion>(Super)) {
     assert(isValidBaseClass(RD, dyn_cast<TypedValueRegion>(Super), IsVirtual));
-    (void)isValidBaseClass;
+    (void)&isValidBaseClass;
 
     if (IsVirtual) {
       // Virtual base regions should not be layered, since the layout rules





More information about the cfe-commits mailing list