Skip to content

Commit de38c71

Browse files
authored
Merge pull request #11513 from swiftlang/lldb/injected-class-name-to-21.x
[lldb][TypeSystemClang] Don't call getInjectedClassNameType when creating class template decls
2 parents e6ad5bd + ba59d7d commit de38c71

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,6 @@ ClassTemplateDecl *TypeSystemClang::CreateClassTemplateDecl(
16401640
class_template_decl->init(template_cxx_decl);
16411641
template_cxx_decl->setDescribedClassTemplate(class_template_decl);
16421642
SetOwningModule(class_template_decl, owning_module);
1643-
ast.getInjectedClassNameType(
1644-
template_cxx_decl,
1645-
class_template_decl->getInjectedClassNameSpecialization());
16461643

16471644
if (access_type != eAccessNone)
16481645
class_template_decl->setAccess(

lldb/unittests/Symbol/TestTypeSystemClang.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,7 @@ TEST_F(TestCreateClassTemplateDecl, FindExistingTemplates) {
685685
// The behaviour should follow the C++ rules for redeclaring templates
686686
// (e.g., parameter names can be changed/omitted.)
687687

688-
// Test an empty template parameter list: <>
689-
// This first expect causes an assert. rdar://159893045
690-
// ExpectNewTemplate("<>", {{}, {}});
688+
ExpectNewTemplate("<>", {{}, {}});
691689

692690
clang::TemplateArgument intArg(m_ast->getASTContext().IntTy);
693691
clang::TemplateArgument int47Arg(m_ast->getASTContext(),

0 commit comments

Comments
 (0)