[llvm] 38619fa - Fix enumeral mismatch warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 07:38:16 PDT 2020
Author: Simon Pilgrim
Date: 2020-03-31T15:38:02+01:00
New Revision: 38619fa7da381b1390f9dc416fe2ed02612483ee
URL: https://github.com/llvm/llvm-project/commit/38619fa7da381b1390f9dc416fe2ed02612483ee
DIFF: https://github.com/llvm/llvm-project/commit/38619fa7da381b1390f9dc416fe2ed02612483ee.diff
LOG: Fix enumeral mismatch warning. NFCI.
Don't mix llvm::ISD and llvm::X86ISD.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 7f2046dab5e6..bacd6d88d05a 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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);
More information about the llvm-commits
mailing list