Fix if statement in DebugInfo/GSYM/LookupResult.cpp

This commit is contained in:
Alexander Pivovarov 2022-05-18 16:04:05 -07:00
parent 90ea81fcb2
commit b21c03854c

View File

@ -43,7 +43,7 @@ raw_ostream &llvm::gsym::operator<<(raw_ostream &OS, const SourceLocation &SL) {
OS << " @ ";
if (!SL.Dir.empty()) {
OS << SL.Dir;
if (SL.Dir.contains('\\') and not SL.Dir.contains('/'))
if (SL.Dir.contains('\\') && !SL.Dir.contains('/'))
OS << '\\';
else
OS << '/';