File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -791,17 +791,14 @@ class ReductionProcessor {
791
791
if (!name->symbol ->GetUltimate ().attrs ().test (
792
792
Fortran::semantics::Attr::INTRINSIC))
793
793
return false ;
794
- auto redType = llvm::StringSwitch<std::optional<ReductionIdentifier>>(
795
- getRealName (name).ToString ())
796
- .Case (" max" , ReductionIdentifier::MAX)
797
- .Case (" min" , ReductionIdentifier::MIN)
798
- .Case (" iand" , ReductionIdentifier::IAND)
799
- .Case (" ior" , ReductionIdentifier::IOR)
800
- .Case (" ieor" , ReductionIdentifier::IEOR)
801
- .Default (std::nullopt);
802
- if (redType)
803
- return true ;
804
- return false ;
794
+ auto redType = llvm::StringSwitch<bool >(getRealName (name).ToString ())
795
+ .Case (" max" , true )
796
+ .Case (" min" , true )
797
+ .Case (" iand" , true )
798
+ .Case (" ior" , true )
799
+ .Case (" ieor" , true )
800
+ .Default (false );
801
+ return redType;
805
802
}
806
803
807
804
static const Fortran::semantics::SourceName
You can’t perform that action at this time.
0 commit comments