From: Daniel Jasper Date: Thu, 1 Dec 2016 14:33:50 +0000 (+0000) Subject: Silence GCC's -Wenum-compare after r288335 in the same way it is done X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eefb7da5946083420d7eeb7328f468d4b1022e8;p=llvm Silence GCC's -Wenum-compare after r288335 in the same way it is done in X86FastISel.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288337 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 4b48537f701..661d28156ba 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -26280,7 +26280,8 @@ static bool combineX86ShuffleChain(ArrayRef Inputs, SDValue Root, 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),