This revision was automatically updated to reflect the committed changes.
Closed by commit rG41a2d7a37cb1: [lldb][NFC] Build fix: use
TemplateParameterInfos public APIs instead of… (authored by Michael137).
Changed prior to commit:
https://reviews.llvm.org/D140030?vs=483759&id=492631#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140030/new/
https://reviews.llvm.org/D140030
Files:
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Index: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
===================================================================
--- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -1440,10 +1440,12 @@
clang::TemplateParameterList *template_param_list =
CreateTemplateParameterList(getASTContext(), template_param_infos,
ignore);
- llvm::SmallVector<clang::TemplateArgument, 2> args =
- template_param_infos.args;
+ llvm::SmallVector<clang::TemplateArgument, 2> args(
+ template_param_infos.GetArgs());
if (template_param_infos.hasParameterPack()) {
- args.append(template_param_infos.packed_args->args);
+ llvm::ArrayRef<TemplateArgument> pack_args =
+ template_param_infos.GetParameterPackArgs();
+ args.append(pack_args.begin(), pack_args.end());
}
std::string str;
llvm::raw_string_ostream os(str);
Index: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
===================================================================
--- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -1440,10 +1440,12 @@
clang::TemplateParameterList *template_param_list =
CreateTemplateParameterList(getASTContext(), template_param_infos,
ignore);
- llvm::SmallVector<clang::TemplateArgument, 2> args =
- template_param_infos.args;
+ llvm::SmallVector<clang::TemplateArgument, 2> args(
+ template_param_infos.GetArgs());
if (template_param_infos.hasParameterPack()) {
- args.append(template_param_infos.packed_args->args);
+ llvm::ArrayRef<TemplateArgument> pack_args =
+ template_param_infos.GetParameterPackArgs();
+ args.append(pack_args.begin(), pack_args.end());
}
std::string str;
llvm::raw_string_ostream os(str);
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits