Fix enumeral mismatch warning. NFCI.

Don't mix llvm::ISD and llvm::X86ISD.
This commit is contained in:
Simon Pilgrim 2020-03-31 15:37:41 +01:00
parent e267dfceeb
commit 38619fa7da

View File

@ -34293,7 +34293,8 @@ static SDValue combineX86ShuffleChain(ArrayRef<SDValue> Inputs, SDValue Root,
Subtarget)) {
bool IsTRUNCATE = ShuffleVT.getVectorNumElements() ==
ShuffleSrcVT.getVectorNumElements();
unsigned Opc = IsTRUNCATE ? ISD::TRUNCATE : X86ISD::VTRUNC;
unsigned Opc =
IsTRUNCATE ? (unsigned)ISD::TRUNCATE : (unsigned)X86ISD::VTRUNC;
if (Depth == 0 && Root.getOpcode() == Opc)
return SDValue(); // Nothing to do!
V1 = DAG.getBitcast(ShuffleSrcVT, V1);