]> granicus.if.org Git - clang/commitdiff
Using the function pointer instead of the function type; this allows us to re-enable...
authorAaron Ballman <aaron@aaronballman.com>
Sat, 27 Jul 2013 03:34:50 +0000 (03:34 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 27 Jul 2013 03:34:50 +0000 (03:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/MemRegion.cpp

index 3c9e9e456456828f62881d5b8a4981918b2a65ab..9051d5a13efd34d62094a14032510b9c9d4efae5 100644 (file)
@@ -981,7 +981,7 @@ MemRegionManager::getCXXBaseObjectRegion(const CXXRecordDecl *RD,
                                          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