mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm][utils] Fix handling of llvm::None
This commit is contained in:
parent
bab9dd2c4b
commit
ff0a7ebbd3
@ -120,7 +120,8 @@ def GetOptionalValue(valobj):
|
|||||||
return storage.Cast(underlying_type)
|
return storage.Cast(underlying_type)
|
||||||
|
|
||||||
def OptionalSummaryProvider(valobj, internal_dict):
|
def OptionalSummaryProvider(valobj, internal_dict):
|
||||||
return GetOptionalValue(valobj).summary
|
val = GetOptionalValue(valobj)
|
||||||
|
return val.summary if val else 'None'
|
||||||
|
|
||||||
class OptionalSynthProvider:
|
class OptionalSynthProvider:
|
||||||
"""Provides deref support to llvm::Optional<T>"""
|
"""Provides deref support to llvm::Optional<T>"""
|
||||||
|
Loading…
Reference in New Issue
Block a user