Skip to content

Commit 0c5084b

Browse files
committed
[lldb] Add missing converstion to optional
(cherry picked from commit 2317a72)
1 parent 4069c7f commit 0c5084b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/ValueObject/ValueObjectChild.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ bool ValueObjectChild::UpdateValue() {
201201
const bool thread_and_frame_only_if_stopped = true;
202202
ExecutionContext exe_ctx(GetExecutionContextRef().Lock(
203203
thread_and_frame_only_if_stopped));
204-
if (auto type_bit_size = GetCompilerType().GetBitSize(
205-
exe_ctx.GetBestExecutionContextScope())) {
204+
if (auto type_bit_size =
205+
llvm::expectedToOptional(GetCompilerType().GetBitSize(
206+
exe_ctx.GetBestExecutionContextScope()))) {
206207
uint64_t bitfield_end =
207208
m_bitfield_bit_size + m_bitfield_bit_offset;
208209
if (bitfield_end > *type_bit_size) {

0 commit comments

Comments
 (0)