Skip to content

Commit 20411c7

Browse files
[flang] Apply fixes from readability-string-compare (NFC)
1 parent c83c4b5 commit 20411c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Evaluate/intrinsics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,9 +1657,9 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
16571657
// max(a1=x) or max(a2=x)
16581658
const auto kwA1{dummy[0].keyword};
16591659
const auto kwA2{dummy[1].keyword};
1660-
if (maxMinKeywords.begin()->ToString().compare(kwA1) == 0) {
1660+
if (maxMinKeywords.begin()->ToString() == kwA1) {
16611661
messages.Say("missing mandatory 'a2=' argument"_err_en_US);
1662-
} else if (maxMinKeywords.begin()->ToString().compare(kwA2) == 0) {
1662+
} else if (maxMinKeywords.begin()->ToString() == kwA2) {
16631663
messages.Say("missing mandatory 'a1=' argument"_err_en_US);
16641664
} else {
16651665
messages.Say(

0 commit comments

Comments
 (0)