llvm.org GIT mirror llvm / 4904473
Fix GDB pretty printer for Optional after r354246 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361870 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 1 year, 5 months ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
128128 self.val = None
129129 if not val['Storage']['hasVal']:
130130 raise StopIteration
131 return ('value', val['Storage']['storage']['buffer'].address.cast(
132 val.type.template_argument(0).pointer()).dereference())
131 return ('value', val['Storage']['value'])
133132
134133 def to_string(self):
135134 return 'llvm::Optional{}'.format('' if self.val['Storage']['hasVal'] else ' is not initialized')