SystemZ: silence a GCC warning
[oota-llvm.git] / lib / Target / SystemZ / SystemZISelLowering.cpp
index 891a0027414f181d24bf6a8d8ccbc0d65278276d..99bf54c8345772c8f229a84e1c2ac23cbcb2c886 100644 (file)
@@ -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;