Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1640,9 +1640,6 @@ ClassTemplateDecl *TypeSystemClang::CreateClassTemplateDecl(
class_template_decl->init(template_cxx_decl);
template_cxx_decl->setDescribedClassTemplate(class_template_decl);
SetOwningModule(class_template_decl, owning_module);
ast.getInjectedClassNameType(
template_cxx_decl,
class_template_decl->getInjectedClassNameSpecialization());

if (access_type != eAccessNone)
class_template_decl->setAccess(
Expand Down
4 changes: 1 addition & 3 deletions lldb/unittests/Symbol/TestTypeSystemClang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,7 @@ TEST_F(TestCreateClassTemplateDecl, FindExistingTemplates) {
// The behaviour should follow the C++ rules for redeclaring templates
// (e.g., parameter names can be changed/omitted.)

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

clang::TemplateArgument intArg(m_ast->getASTContext().IntTy);
clang::TemplateArgument int47Arg(m_ast->getASTContext(),
Expand Down