Attempt to fix e3dea5cf0e
https://lab.llvm.org/buildbot/#/builders/17/builds/13728 found an issue in the optional formatter.
This commit is contained in:
parent
bb0d8e4bd9
commit
a2c76312ed
|
@ -35,6 +35,10 @@ class StdOptionalSynthProvider:
|
|||
return 0
|
||||
|
||||
def get_child_at_index(self, index):
|
||||
# some versions of libstdcpp have an additional _M_value child with the actual value
|
||||
possible_value = self.value.GetChildMemberWithName('_M_value')
|
||||
if possible_value.IsValid():
|
||||
return possible_value.Clone('Value')
|
||||
return self.value.Clone('Value')
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue