]> granicus.if.org Git - clang/commitdiff
Silence unused variable warning in non-assert builds.
authorDaniel Jasper <djasper@google.com>
Thu, 1 Aug 2013 10:30:11 +0000 (10:30 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 1 Aug 2013 10:30:11 +0000 (10:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187572 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ItaniumMangle.cpp

index 7016ee1d65aa2d8b655589ba930482a9ba6eb6d8..9bce9a0fa3b05e6b049495f77bc1a73c4a551338 100644 (file)
@@ -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");