Skip to content

Commit

Permalink
[flang] Apply fixes from readability-string-compare (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Apr 16, 2023
1 parent c83c4b5 commit 20411c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flang/lib/Evaluate/intrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,9 +1657,9 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
// max(a1=x) or max(a2=x)
const auto kwA1{dummy[0].keyword};
const auto kwA2{dummy[1].keyword};
if (maxMinKeywords.begin()->ToString().compare(kwA1) == 0) {
if (maxMinKeywords.begin()->ToString() == kwA1) {
messages.Say("missing mandatory 'a2=' argument"_err_en_US);
} else if (maxMinKeywords.begin()->ToString().compare(kwA2) == 0) {
} else if (maxMinKeywords.begin()->ToString() == kwA2) {
messages.Say("missing mandatory 'a1=' argument"_err_en_US);
} else {
messages.Say(
Expand Down

0 comments on commit 20411c7

Please sign in to comment.