projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5608047
)
[X86] Fix an unused variable warning in released builds.
author
Craig Topper
<craig.topper@gmail.com>
Sat, 26 Dec 2015 20:13:33 +0000
(20:13 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sat, 26 Dec 2015 20:13:33 +0000
(20:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256453
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/Utils/X86ShuffleDecode.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/Utils/X86ShuffleDecode.cpp
b/lib/Target/X86/Utils/X86ShuffleDecode.cpp
index a3729769901f74c514db10305d003c3273ddbe4d..4fdd527d87c8a8b8aef729b4c289f6b51a22348d 100644
(file)
--- a/
lib/Target/X86/Utils/X86ShuffleDecode.cpp
+++ b/
lib/Target/X86/Utils/X86ShuffleDecode.cpp
@@
-308,8
+308,10
@@
void DecodePSHUFBMask(const Constant *C, SmallVectorImpl<int> &ShuffleMask) {
// <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)) {