Skip to content

Commit

Permalink
[Analysis] Use != to compare strings (NFC)
Browse files Browse the repository at this point in the history
Identified with readability-string-compare.
  • Loading branch information
kazutakahirata committed Jan 30, 2022
1 parent fdd0e74 commit 49fdee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Analysis/IRSimilarityIdentifier.cpp
Expand Up @@ -254,7 +254,7 @@ bool IRSimilarity::isClose(const IRInstructionData &A,
// name is the same. We already know that the types are since is
// isSameOperationAs is true.
if (isa<CallInst>(A.Inst) && isa<CallInst>(B.Inst)) {
if (A.getCalleeName().str().compare(B.getCalleeName().str()) != 0)
if (A.getCalleeName().str() != B.getCalleeName().str())
return false;
}

Expand Down

0 comments on commit 49fdee1

Please sign in to comment.