[llvm] r256453 - [X86] Fix an unused variable warning in released builds.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 26 12:13:34 PST 2015
Author: ctopper
Date: Sat Dec 26 14:13:33 2015
New Revision: 256453
URL: http://llvm.org/viewvc/llvm-project?rev=256453&view=rev
Log:
[X86] Fix an unused variable warning in released builds.
Modified:
llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
Modified: llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp?rev=256453&r1=256452&r2=256453&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp (original)
+++ llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp Sat Dec 26 14:13:33 2015
@@ -308,8 +308,10 @@ void DecodePSHUFBMask(const Constant *C,
// <4 x i32> <i32 -2147483648, i32 -2147483648,
// i32 -2147483648, i32 -2147483648>
+#ifndef NDEBUG
unsigned MaskTySize = MaskTy->getPrimitiveSizeInBits();
assert(MaskTySize == 128 || MaskTySize == 256 || MaskTySize == 512);
+#endif
// This is a straightforward byte vector.
if (MaskTy->isVectorTy() && MaskTy->getVectorElementType()->isIntegerTy(8)) {
More information about the llvm-commits
mailing list