Skip to content

Commit 0c14f66

Browse files
committed
Use getEmptyPack instead of creating new pack
1 parent 64c0f83 commit 0c14f66

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cpp2rust/cpp_rule_preprocessor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ class Callback : public clang::ast_matchers::MatchFinder::MatchCallback {
355355
llvm::SmallVectorImpl<clang::TemplateArgument> &out) {
356356
for (clang::NamedDecl *param : *decl->getTemplateParameters()) {
357357
if (param->isTemplateParameterPack()) {
358-
out.emplace_back(
359-
clang::TemplateArgument::CreatePackCopy(sema_->Context, {}));
358+
out.emplace_back(clang::TemplateArgument::getEmptyPack());
360359
} else if (llvm::isa<clang::TemplateTypeParmDecl>(param)) {
361360
clang::RecordDecl *rdecl = createRecordDecl(param->getName());
362361
clang::QualType type =

0 commit comments

Comments
 (0)