summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-05-10 00:53:41 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-05-10 00:53:41 +0000
commitee33c49ade47ea24f0d26d86456632a664efe069 (patch)
tree955697214c546773e480ad4572d6a83598a99ea5
parentb0fb990b54542c4309473b661c5716a4ebebd82d (diff)
downloadbcm5719-llvm-ee33c49ade47ea24f0d26d86456632a664efe069.tar.gz
bcm5719-llvm-ee33c49ade47ea24f0d26d86456632a664efe069.zip
SystemZ: silence a GCC warning
warning: enumeral and non-enumeral type in conditional expression Cast the 0 to the appropriate type. NFC. Identified by GCC 4.9.2 llvm-svn: 236942
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index 891a0027414..99bf54c8345 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -2171,14 +2171,14 @@ static unsigned getVectorComparison(ISD::CondCode CC, bool IsFP) {
case ISD::SETOGE:
case ISD::SETGE:
- return IsFP ? SystemZISD::VFCMPHE : 0;
+ return IsFP ? SystemZISD::VFCMPHE : static_cast<SystemZISD::NodeType>(0);
case ISD::SETOGT:
case ISD::SETGT:
return IsFP ? SystemZISD::VFCMPH : SystemZISD::VICMPH;
case ISD::SETUGT:
- return IsFP ? 0 : SystemZISD::VICMPHL;
+ return IsFP ? static_cast<SystemZISD::NodeType>(0) : SystemZISD::VICMPHL;
default:
return 0;
OpenPOWER on IntegriCloud