diff --git a/llvm/tools/dsymutil/MachODebugMapParser.cpp b/llvm/tools/dsymutil/MachODebugMapParser.cpp index 6a9f25681cdd1c..e28c976d6ace34 100644 --- a/llvm/tools/dsymutil/MachODebugMapParser.cpp +++ b/llvm/tools/dsymutil/MachODebugMapParser.cpp @@ -301,7 +301,7 @@ void MachODebugMapParser::switchToNewLibDebugMapObject( if (CurrentDebugMapObject && CurrentDebugMapObject->getType() == MachO::N_LIB && - CurrentDebugMapObject->getObjectFilename().compare(Path.str()) == 0) { + CurrentDebugMapObject->getObjectFilename() == Path) { return; }