aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-07-26 05:44:15 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-07-26 05:44:15 +0000
commitd7c726c5e9556d3e4994006b65596134fcdfcb82 (patch)
tree59dbb5a3462752e4fa600437d8852a61f6fe9812 /llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
parent24b283005db37b259c30673d384807fed16fcbe5 (diff)
downloadllvm-d7c726c5e9556d3e4994006b65596134fcdfcb82.zip
llvm-d7c726c5e9556d3e4994006b65596134fcdfcb82.tar.gz
llvm-d7c726c5e9556d3e4994006b65596134fcdfcb82.tar.bz2
Fix broken assert.
llvm-svn: 214019
Diffstat (limited to 'llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp')
-rw-r--r--llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
index ff8382d..83ee12b 100644
--- a/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
+++ b/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
@@ -233,7 +233,7 @@ void DecodePSHUFBMask(const ConstantDataSequential *C,
ShuffleMask.push_back(SM_SentinelZero);
else {
int Index = Base + Element;
- assert((Index >= 0 && Index < NumElements) ||
+ assert((Index >= 0 && Index < NumElements) &&
"Out of bounds shuffle index for pshub instruction!");
ShuffleMask.push_back(Index);
}