Update Optional gdb pretty printer for 556bcc7821

This commit is contained in:
David Blaikie 2022-07-12 01:10:31 +00:00
parent 42a66fb727
commit d81a8759c9
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class OptionalPrinter(Iterator):
self.val = None
if not val['Storage']['hasVal']:
raise StopIteration
return ('value', val['Storage']['value'])
return ('value', val['Storage']['val'])
def to_string(self):
return 'llvm::Optional{}'.format('' if self.val['Storage']['hasVal'] else ' is not initialized')