aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests
diff options
context:
space:
mode:
authorHiroshi Yamauchi <56735936+hjyamauchi@users.noreply.github.com>2024-03-12 10:26:44 -0700
committerGitHub <noreply@github.com>2024-03-12 10:26:44 -0700
commit93503aafcdc66837ecf220243aaa530c05c35895 (patch)
treec55da591c45a8347d6053ba32175b607bd781f51 /lldb/unittests
parent7bee91fadf8db90f71b458aaff4de0efa7dc23a0 (diff)
downloadllvm-93503aafcdc66837ecf220243aaa530c05c35895.zip
llvm-93503aafcdc66837ecf220243aaa530c05c35895.tar.gz
llvm-93503aafcdc66837ecf220243aaa530c05c35895.tar.bz2
Fix MSVC build issues (#84362)
MSVC fails when there is ambiguity (multiple options) around implicit type conversion operators. Make ConstString's conversion operator to string_view explicit to avoid ambiguity with one to StringRef and remove an unused local variable that MSVC also fails on.
Diffstat (limited to 'lldb/unittests')
-rw-r--r--lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
index 6a2ea8c..f237dd6 100644
--- a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
+++ b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
@@ -527,7 +527,6 @@ TEST_F(SymbolFilePDBTests, TestTypedefs) {
SymbolFilePDB *symfile =
static_cast<SymbolFilePDB *>(module->GetSymbolFile());
llvm::pdb::IPDBSession &session = symfile->GetPDBSession();
- TypeMap results;
const char *TypedefsToCheck[] = {"ClassTypedef", "NSClassTypedef",
"FuncPointerTypedef",