[Lldb-commits] [lldb] 656a812 - [lldb] Fix windows build for 38870af
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 29 03:47:34 PST 2019
Author: Pavel Labath
Date: 2019-11-29T12:48:25+01:00
New Revision: 656a8123deed31d2d7aee313e87911dc153fa6d3
URL: https://github.com/llvm/llvm-project/commit/656a8123deed31d2d7aee313e87911dc153fa6d3
DIFF: https://github.com/llvm/llvm-project/commit/656a8123deed31d2d7aee313e87911dc153fa6d3.diff
LOG: [lldb] Fix windows build for 38870af
Added:
Modified:
lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
index 0470394d4255..e8a8690c1ff1 100644
--- a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
+++ b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
@@ -109,7 +109,7 @@ class SymbolFilePDBTests : public testing::Test {
const FileSpec &spec) const {
for (size_t i = 0; i < sc_list.GetSize(); ++i) {
const SymbolContext &sc = sc_list[i];
- if (FileSpecMatchesAsBaseOrFull(*sc.comp_unit, spec))
+ if (FileSpecMatchesAsBaseOrFull(sc.comp_unit->GetPrimaryFile(), spec))
return true;
}
return false;
More information about the lldb-commits
mailing list