]> granicus.if.org Git - llvm/commitdiff
Silence GCC's -Wenum-compare after r288335 in the same way it is done
authorDaniel Jasper <djasper@google.com>
Thu, 1 Dec 2016 14:33:50 +0000 (14:33 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 1 Dec 2016 14:33:50 +0000 (14:33 +0000)
in X86FastISel.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288337 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 4b48537f701bcfaf0db977936fd3eba4a235ec2e..661d28156bab74efc23165a6aac679becb11cebc 100644 (file)
@@ -26280,7 +26280,8 @@ static bool combineX86ShuffleChain(ArrayRef<SDValue> 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),