[llvm] r296986 - [X86] Silence GCC enum compare warning.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 5 04:53:21 PST 2017
Author: d0k
Date: Sun Mar 5 06:53:20 2017
New Revision: 296986
URL: http://llvm.org/viewvc/llvm-project?rev=296986&view=rev
Log:
[X86] Silence GCC enum compare warning.
X86ISelLowering.cpp:26506:36: error: enumeral mismatch in conditional
expression: 'llvm::X86ISD::NodeType' vs 'llvm::ISD::NodeType'
[-Werror=enum-compare]
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=296986&r1=296985&r2=296986&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Mar 5 06:53:20 2017
@@ -26503,8 +26503,8 @@ static bool matchUnaryVectorShuffle(MVT
V1 = extractSubVector(V1, 0, DAG, DL, SrcSize);
DstVT = MVT::getIntegerVT(Scale * MaskEltSize);
DstVT = MVT::getVectorVT(DstVT, NumDstElts);
- Shuffle = (SrcVT != MaskVT ? X86ISD::VZEXT
- : ISD::ZERO_EXTEND_VECTOR_INREG);
+ Shuffle = SrcVT != MaskVT ? unsigned(X86ISD::VZEXT)
+ : unsigned(ISD::ZERO_EXTEND_VECTOR_INREG);
return true;
}
}
More information about the llvm-commits
mailing list