[PATCH] D157961: [llvm][utils] Support SmallVector with pointer-type template parameter

Michael Buch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 03:49:11 PDT 2023


Michael137 updated this revision to Diff 550244.
Michael137 added a comment.

- Remove drive-by change


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157961/new/

https://reviews.llvm.org/D157961

Files:
  llvm/utils/lldbDataFormatters.py


Index: llvm/utils/lldbDataFormatters.py
===================================================================
--- llvm/utils/lldbDataFormatters.py
+++ llvm/utils/lldbDataFormatters.py
@@ -129,6 +129,9 @@
         if the_type.IsReferenceType():
             the_type = the_type.GetDereferencedType()
 
+        if the_type.IsPointerType():
+            the_type = the_type.GetPointeeType()
+
         self.data_type = the_type.GetTemplateArgumentType(0)
         self.type_size = self.data_type.GetByteSize()
         assert self.type_size != 0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157961.550244.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230815/79ba0159/attachment.bin>


More information about the llvm-commits mailing list