r187572 - Silence unused variable warning in non-assert builds.

Daniel Jasper djasper at google.com
Thu Aug 1 03:30:11 PDT 2013


Author: djasper
Date: Thu Aug  1 05:30:11 2013
New Revision: 187572

URL: http://llvm.org/viewvc/llvm-project?rev=187572&view=rev
Log:
Silence unused variable warning in non-assert builds.

Modified:
    cfe/trunk/lib/AST/ItaniumMangle.cpp

Modified: cfe/trunk/lib/AST/ItaniumMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ItaniumMangle.cpp?rev=187572&r1=187571&r2=187572&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ItaniumMangle.cpp (original)
+++ cfe/trunk/lib/AST/ItaniumMangle.cpp Thu Aug  1 05:30:11 2013
@@ -2230,6 +2230,7 @@ void CXXNameMangler::mangleAArch64NeonVe
   assert(EltType->isBuiltinType() && "Neon vector element not a BuiltinType");
   unsigned BitSize =
       (T->getNumElements() * getASTContext().getTypeSize(EltType));
+  (void)BitSize; // Silence warning.
 
   assert((BitSize == 64 || BitSize == 128) &&
          "Neon vector type not 64 or 128 bits");





More information about the cfe-commits mailing list