mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
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
This commit is contained in:
parent
051452f517
commit
09a1c9ca34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user