From 800de7ee43ab2dce2a281d4fa3c965b5424a4237 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Thu, 1 Aug 2013 10:30:11 +0000 Subject: [PATCH] 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 --- lib/AST/ItaniumMangle.cpp | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.50.1