Skip to content

Commit 19146b9

Browse files
[Analysis] Simplify a StringRef comparison (NFC)
1 parent 03cba44 commit 19146b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/IRSimilarityIdentifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ bool IRSimilarity::isClose(const IRInstructionData &A,
274274
// name is the same. We already know that the types are since is
275275
// isSameOperationAs is true.
276276
if (isa<CallInst>(A.Inst) && isa<CallInst>(B.Inst)) {
277-
if (A.getCalleeName().str() != B.getCalleeName().str())
277+
if (A.getCalleeName() != B.getCalleeName())
278278
return false;
279279
}
280280

0 commit comments

Comments
 (0)