[PATCH] D21278: Fix an enumeral mismatch warning.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 02:10:36 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL272539: Fix an enumeral mismatch warning. (authored by hokein).
Changed prior to commit:
http://reviews.llvm.org/D21278?vs=60494&id=60498#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21278
Files:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Index: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
@@ -15185,12 +15185,14 @@
if (SetCCOpcode == ISD::SETUEQ) {
CC0 = 3; // UNORD
CC1 = 0; // EQ
- CombineOpc = Opc == X86ISD::CMPP ? X86ISD::FOR : ISD::OR;
+ CombineOpc = Opc == X86ISD::CMPP ? static_cast<unsigned>(X86ISD::FOR) :
+ static_cast<unsigned>(ISD::OR);
} else {
assert(SetCCOpcode == ISD::SETONE);
CC0 = 7; // ORD
CC1 = 4; // NEQ
- CombineOpc = Opc == X86ISD::CMPP ? X86ISD::FAND : ISD::AND;
+ CombineOpc = Opc == X86ISD::CMPP ? static_cast<unsigned>(X86ISD::FAND) :
+ static_cast<unsigned>(ISD::AND);
}
SDValue Cmp0 = DAG.getNode(Opc, dl, VT, Op0, Op1,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21278.60498.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160613/ca3269eb/attachment.bin>
More information about the cfe-commits
mailing list