[llvm] r288337 - Silence GCC's -Wenum-compare after r288335 in the same way it is done
Daniel Jasper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 06:33:50 PST 2016
Author: djasper
Date: Thu Dec 1 08:33:50 2016
New Revision: 288337
URL: http://llvm.org/viewvc/llvm-project?rev=288337&view=rev
Log:
Silence GCC's -Wenum-compare after r288335 in the same way it is done
in X86FastISel.cpp.
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=288337&r1=288336&r2=288337&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Dec 1 08:33:50 2016
@@ -26280,7 +26280,8 @@ static bool combineX86ShuffleChain(Array
DCI.AddToWorklist(BitMask.getNode());
Res = DAG.getBitcast(MaskVT, V1);
DCI.AddToWorklist(Res.getNode());
- unsigned AndOpcode = FloatDomain ? X86ISD::FAND : ISD::AND;
+ unsigned AndOpcode =
+ FloatDomain ? unsigned(X86ISD::FAND) : unsigned(ISD::AND);
Res = DAG.getNode(AndOpcode, DL, MaskVT, Res, BitMask);
DCI.AddToWorklist(Res.getNode());
DCI.CombineTo(Root.getNode(), DAG.getBitcast(RootVT, Res),
More information about the llvm-commits
mailing list