mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-05 00:49:43 +00:00
Fix GDB pretty printer for Optional after r354246
llvm-svn: 361870
This commit is contained in:
parent
0dac476072
commit
4e68e878f1
@ -129,8 +129,7 @@ class OptionalPrinter(Iterator):
|
||||
self.val = None
|
||||
if not val['Storage']['hasVal']:
|
||||
raise StopIteration
|
||||
return ('value', val['Storage']['storage']['buffer'].address.cast(
|
||||
val.type.template_argument(0).pointer()).dereference())
|
||||
return ('value', val['Storage']['value'])
|
||||
|
||||
def to_string(self):
|
||||
return 'llvm::Optional{}'.format('' if self.val['Storage']['hasVal'] else ' is not initialized')
|
||||
|
Loading…
x
Reference in New Issue
Block a user