[all-commits] [llvm/llvm-project] b5a7d1: [lldb] Fix SymbolFilePDBTests build for StringRef ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jul 10 16:56:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5a7d1e675f222f7e6a3d3e6536e2214c415e1b6
      https://github.com/llvm/llvm-project/commit/b5a7d1e675f222f7e6a3d3e6536e2214c415e1b6
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp

  Log Message:
  -----------
  [lldb] Fix SymbolFilePDBTests build for StringRef FileSpec getters (#208857)

f9b5264523b1 changed FileSpec::GetDirectory() to return llvm::StringRef
instead of ConstString. ConstString had an operator bool, so the guard

```
if (left.GetDirectory() && right.GetDirectory())
```

compiled. StringRef has neither a bool conversion nor operator&&, so the
test no longer builds. Check for a non-empty directory instead, which
preserves the original "if BOTH have a directory" intent.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list