summaryrefslogtreecommitdiff
path: root/lldb/source/Symbol/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/Type.cpp')
-rw-r--r--lldb/source/Symbol/Type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp
index 81bc4018de4..e966c269408 100644
--- a/lldb/source/Symbol/Type.cpp
+++ b/lldb/source/Symbol/Type.cpp
@@ -321,7 +321,8 @@ uint64_t Type::GetByteSize() {
if (encoding_type)
m_byte_size = encoding_type->GetByteSize();
if (m_byte_size == 0)
- if (auto size = GetLayoutCompilerType().GetByteSize(nullptr))
+ if (llvm::Optional<uint64_t> size =
+ GetLayoutCompilerType().GetByteSize(nullptr))
m_byte_size = *size;
} break;