Skip to content

Commit f59fed2

Browse files
committed
[lldb][PDB] TypeQuery parameter should be ConstString
1 parent ab380c2 commit f59fed2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,9 @@ TEST_F(SymbolFilePDBTests, TestNestedClassTypes) {
414414

415415
auto ClassCompilerDeclCtx = CompilerDeclContext(clang_ast_ctx, ClassDeclCtx);
416416
TypeResults query_results_nested;
417-
symfile->FindTypes(TypeQuery(ClassCompilerDeclCtx, "NestedClass"),
418-
query_results_nested);
417+
symfile->FindTypes(
418+
TypeQuery(ClassCompilerDeclCtx, ConstString("NestedClass")),
419+
query_results_nested);
419420
TypeMap &more_results = query_results_nested.GetTypeMap();
420421
EXPECT_LE(1u, more_results.GetSize());
421422

@@ -458,7 +459,7 @@ TEST_F(SymbolFilePDBTests, TestClassInNamespace) {
458459
EXPECT_TRUE(ns_namespace_decl_ctx.IsValid());
459460

460461
TypeResults query_results;
461-
symfile->FindTypes(TypeQuery(ns_namespace_decl_ctx, "NSClass"),
462+
symfile->FindTypes(TypeQuery(ns_namespace_decl_ctx, ConstString("NSClass")),
462463
query_results);
463464
TypeMap &results = query_results.GetTypeMap();
464465
EXPECT_EQ(1u, results.GetSize());

0 commit comments

Comments
 (0)