From: Saleem Abdulrasool Date: Sun, 10 May 2015 00:53:41 +0000 (+0000) Subject: SystemZ: silence a GCC warning X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=52a759a24fae8e1c3ab1664a230e76f420120c77;p=oota-llvm.git 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236942 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index 891a0027414..99bf54c8345 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/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(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(0) : SystemZISD::VICMPHL; default: return 0;