mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 05:01:56 +00:00
Fix enumeral mismatch warning. NFCI.
Don't mix llvm::ISD and llvm::X86ISD.
This commit is contained in:
parent
e267dfceeb
commit
38619fa7da
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user