From: Daniel Jasper Date: Thu, 1 Aug 2013 10:30:11 +0000 (+0000) Subject: Silence unused variable warning in non-assert builds. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=800de7ee43ab2dce2a281d4fa3c965b5424a4237;p=clang Silence unused variable warning in non-assert builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187572 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ItaniumMangle.cpp b/lib/AST/ItaniumMangle.cpp index 7016ee1d65..9bce9a0fa3 100644 --- a/lib/AST/ItaniumMangle.cpp +++ b/lib/AST/ItaniumMangle.cpp @@ -2230,6 +2230,7 @@ void CXXNameMangler::mangleAArch64NeonVectorType(const VectorType *T) { 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");