1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

[llvm][utils] Fix handling of llvm::None

This commit is contained in:
Dave Lee 2021-03-29 15:59:05 -07:00
parent bab9dd2c4b
commit ff0a7ebbd3

View File

@ -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<T>"""