diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-04 19:20:19 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-08 19:02:26 +0000 | 
| commit | 81ad626541db97eb356e2c1d4a20eb2a26a766ab (patch) | |
| tree | 311b6a8987c32b1e1dcbab65c54cfac3fdb56175 /contrib/llvm-project/llvm/lib/DebugInfo/GSYM/LookupResult.cpp | |
| parent | 5fff09660e06a66bed6482da9c70df328e16bbb6 (diff) | |
| parent | 145449b1e420787bb99721a429341fa6be3adfb6 (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/DebugInfo/GSYM/LookupResult.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/DebugInfo/GSYM/LookupResult.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/LookupResult.cpp b/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/LookupResult.cpp index 8a624226b1d3..00a5b1bbfaa5 100644 --- a/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/LookupResult.cpp +++ b/contrib/llvm-project/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 << '/';  | 
