diff --git a/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/lib/Target/X86/Utils/X86ShuffleDecode.cpp index ff8382d5f013..83ee12b450ca 100644 --- a/lib/Target/X86/Utils/X86ShuffleDecode.cpp +++ b/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); }