forked from OSchip/llvm-project
Silence gcc warning after r364458
Without the fix gcc 7.4.0 complains with
../lib/Target/X86/X86ISelLowering.cpp: In function 'bool getFauxShuffleMask(llvm::SDValue, llvm::SmallVectorImpl<int>&, llvm::SmallVectorImpl<llvm::SDValue>&, llvm::SelectionDAG&)':
../lib/Target/X86/X86ISelLowering.cpp:6690:36: error: enumeral and non-enumeral type in conditional expression [-Werror=extra]
int Idx = (ZeroMask[j] ? SM_SentinelZero : (i + j + Ofs));
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
llvm-svn: 364507
This commit is contained in:
parent
a7cde103c1
commit
7b81b61368
|
|
@ -6687,7 +6687,7 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl<int> &Mask,
|
|||
for (unsigned i = 0; i != NumSizeInBytes; i += NumBytesPerElt) {
|
||||
for (unsigned j = 0; j != NumBytesPerElt; ++j) {
|
||||
unsigned Ofs = (SelectMask[j] ? NumSizeInBytes : 0);
|
||||
int Idx = (ZeroMask[j] ? SM_SentinelZero : (i + j + Ofs));
|
||||
int Idx = (ZeroMask[j] ? (int)SM_SentinelZero : (i + j + Ofs));
|
||||
Mask.push_back(Idx);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue