[llvm] d81a875 - Update Optional gdb pretty printer for 556bcc782101804b2d168a6868ddf06b963a4878
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 18:12:44 PDT 2022
Author: David Blaikie
Date: 2022-07-12T01:12:33Z
New Revision: d81a8759c969344c1e96992aab30f5b5a9d5ffd3
URL: https://github.com/llvm/llvm-project/commit/d81a8759c969344c1e96992aab30f5b5a9d5ffd3
DIFF: https://github.com/llvm/llvm-project/commit/d81a8759c969344c1e96992aab30f5b5a9d5ffd3.diff
LOG: Update Optional gdb pretty printer for 556bcc782101804b2d168a6868ddf06b963a4878
Added:
Modified:
llvm/utils/gdb-scripts/prettyprinters.py
Removed:
################################################################################
diff --git a/llvm/utils/gdb-scripts/prettyprinters.py b/llvm/utils/gdb-scripts/prettyprinters.py
index f778d98b4a96a..1fdf4fe781c74 100644
--- a/llvm/utils/gdb-scripts/prettyprinters.py
+++ b/llvm/utils/gdb-scripts/prettyprinters.py
@@ -137,7 +137,7 @@ def __next__(self):
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')
More information about the llvm-commits
mailing list