mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 00:46:45 +08:00
[lldb] llvm::Optional::value() && => operator*/operator->
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
This commit is contained in:
@@ -2049,7 +2049,7 @@ lldb::ValueObjectSP Thread::GetSiginfoValue() {
|
||||
llvm::Optional<uint64_t> type_size = type.GetByteSize(nullptr);
|
||||
assert(type_size);
|
||||
llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>> data =
|
||||
GetSiginfo(type_size.value());
|
||||
GetSiginfo(*type_size);
|
||||
if (!data)
|
||||
return ValueObjectConstResult::Create(&target, Status(data.takeError()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user