forked from OSchip/llvm-project
[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:
parent
bf2a8a2878
commit
3c56b0bb8f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue