forked from OSchip/llvm-project
Update Optional gdb pretty printer for 556bcc7821
This commit is contained in:
parent
42a66fb727
commit
d81a8759c9
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue