Bring llvm::Optional data formatter back in sync with the implementation.
authorAdrian Prantl <aprantl@apple.com>
Wed, 26 Aug 2020 22:10:31 +0000 (15:10 -0700)
committerAdrian Prantl <aprantl@apple.com>
Wed, 26 Aug 2020 22:10:39 +0000 (15:10 -0700)
llvm/utils/lldbDataFormatters.py

index 98c9099..b5daa09 100644 (file)
@@ -111,7 +111,7 @@ def OptionalSummaryProvider(valobj, internal_dict):
         return 'None'
 
     underlying_type = storage.GetType().GetTemplateArgumentType(0)
-    storage = storage.GetChildMemberWithName('storage')
+    storage = storage.GetChildMemberWithName('value')
     return str(storage.Cast(underlying_type))
 
 def SmallStringSummaryProvider(valobj, internal_dict):