Skip to content

Commit efe6fbd

Browse files
committed
[lldb] Fix StdUnorderedMapSynthProvider for GCC
1 parent 675be0d commit efe6fbd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lldb/examples/synthetic/gnu_libstdcpp.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ def __init__(self, valobj, dict):
6363
self.count = None
6464

6565
def extract_type(self):
66-
type = self.valobj.GetType()
67-
# The last template argument is the allocator type.
68-
template_arg_num = type.GetNumberOfTemplateArguments() - 1
69-
allocator_type = type.GetTemplateArgumentType(template_arg_num)
70-
data_type = allocator_type.GetTemplateArgumentType(0)
66+
head_type = self.head.GetType().GetCanonicalType()
67+
data_type = head_type.GetTemplateArgumentType(1)
7168
return data_type
7269

7370
def update(self):

0 commit comments

Comments
 (0)