Skip to content

Commit 2422b17

Browse files
[DebugInfo] Simplify a string comparison (NFC) (#139918)
Note that the lambda function we are in returns bool, so FileZero.compare(FileOne) is equivalent to FileZero != FileOne in this context.
1 parent 31e981c commit 2422b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ Error LVDWARFReader::createScopes() {
913913
LT->getFileNameByIndex(
914914
1, None, DILineInfoSpecifier::FileLineInfoKind::RawValue,
915915
FileOne);
916-
return FileZero.compare(FileOne);
916+
return FileZero != FileOne;
917917
}
918918
}
919919

0 commit comments

Comments
 (0)