From ff0a7ebbd3ccfd8c82918506946a3342cfa879d6 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 29 Mar 2021 15:59:05 -0700 Subject: [PATCH] [llvm][utils] Fix handling of llvm::None --- utils/lldbDataFormatters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"""