[PATCH] D21278: Fix an enum-compare compliation warning message.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 01:49:17 PDT 2016
hokein created this revision.
hokein added a reviewer: klimek.
hokein added subscribers: cfe-commits, spatel.
A follow-up fix on D21235.
http://reviews.llvm.org/D21278
Files:
lib/Target/X86/X86ISelLowering.cpp
Index: lib/Target/X86/X86ISelLowering.cpp
===================================================================
--- lib/Target/X86/X86ISelLowering.cpp
+++ 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.60494.patch
Type: text/x-patch
Size: 937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160613/87b43a1c/attachment.bin>
More information about the cfe-commits
mailing list