r230590 - Silence unused variable warning in NDEBUG build

Reid Kleckner reid at kleckner.net
Wed Feb 25 16:33:42 PST 2015


Author: rnk
Date: Wed Feb 25 18:33:41 2015
New Revision: 230590

URL: http://llvm.org/viewvc/llvm-project?rev=230590&view=rev
Log:
Silence unused variable warning in NDEBUG build

Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=230590&r1=230589&r2=230590&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Wed Feb 25 18:33:41 2015
@@ -2127,8 +2127,8 @@ void Sema::DeclareGlobalAllocationFuncti
            "Only sized deallocation can have two parameters");
 
     // This declaration should be emited as extern_weak.
-    LinkageInfo LV = Alloc->getLinkageAndVisibility();
-    assert(LV.getLinkage() == clang::ExternalLinkage);
+    assert(Alloc->getLinkageAndVisibility().getLinkage() ==
+           clang::ExternalLinkage);
     Alloc->addAttr(WeakAttr::CreateImplicit(Context));
   }
 





More information about the cfe-commits mailing list