[Lldb-commits] [PATCH] D140030: [lldb][TypeSystemClang][NFC] Make TemplateParameterInfos members private

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 26 19:11:41 PST 2023


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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140030.492631.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230127/34aeee1f/attachment.bin>


More information about the lldb-commits mailing list