diff --git a/utils/lldbDataFormatters.py b/utils/lldbDataFormatters.py index 4dff5b0a9f4..4fc420ff997 100644 --- a/utils/lldbDataFormatters.py +++ b/utils/lldbDataFormatters.py @@ -120,7 +120,8 @@ def GetOptionalValue(valobj): return storage.Cast(underlying_type) def OptionalSummaryProvider(valobj, internal_dict): - return GetOptionalValue(valobj).summary + val = GetOptionalValue(valobj) + return val.summary if val else 'None' class OptionalSynthProvider: """Provides deref support to llvm::Optional"""