[X86] Fix -Wenum-compare warning

lib/Target/X86/X86ISelLowering.cpp:34613:25: error: enumeral mismatch in
conditional expression: 'llvm::ISD::NodeType' vs
'llvm::X86ISD::NodeType'

llvm-svn: 311580
This commit is contained in:
Benjamin Kramer 2017-08-23 17:50:46 +00:00
parent bf2a8a2878
commit 3c56b0bb8f
1 changed files with 1 additions and 1 deletions

View File

@ -34610,7 +34610,7 @@ static SDValue combineFMA(SDNode *N, SelectionDAG &DAG,
unsigned NewOpcode;
if (!NegMul)
NewOpcode = (!NegC) ? ISD::FMA : X86ISD::FMSUB;
NewOpcode = (!NegC) ? unsigned(ISD::FMA) : unsigned(X86ISD::FMSUB);
else
NewOpcode = (!NegC) ? X86ISD::FNMADD : X86ISD::FNMSUB;