aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/GSYM/LookupResult.cpp')
-rw-r--r--llvm/lib/DebugInfo/GSYM/LookupResult.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/GSYM/LookupResult.cpp b/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
index 8a624226b1d3..00a5b1bbfaa5 100644
--- a/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
+++ b/llvm/lib/DebugInfo/GSYM/LookupResult.cpp
@@ -8,6 +8,7 @@
#include "llvm/DebugInfo/GSYM/LookupResult.h"
#include "llvm/ADT/SmallString.h"
+#include "llvm/DebugInfo/GSYM/ExtractRanges.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
@@ -42,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 << '/';