[llvm] r236942 - SystemZ: silence a GCC warning
Saleem Abdulrasool
compnerd at compnerd.org
Sat May 9 17:53:41 PDT 2015
Author: compnerd
Date: Sat May 9 19:53:41 2015
New Revision: 236942
URL: http://llvm.org/viewvc/llvm-project?rev=236942&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp
Modified: llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp?rev=236942&r1=236941&r2=236942&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp Sat May 9 19:53:41 2015
@@ -2171,14 +2171,14 @@ static unsigned getVectorComparison(ISD:
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;
More information about the llvm-commits
mailing list