summaryrefslogtreecommitdiff
path: root/lldb/source/Symbol/CompilerType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/CompilerType.cpp')
-rw-r--r--lldb/source/Symbol/CompilerType.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Symbol/CompilerType.cpp b/lldb/source/Symbol/CompilerType.cpp
index 9d23b8bf060..7e381abd7d1 100644
--- a/lldb/source/Symbol/CompilerType.cpp
+++ b/lldb/source/Symbol/CompilerType.cpp
@@ -513,7 +513,7 @@ CompilerType::GetBitSize(ExecutionContextScope *exe_scope) const {
llvm::Optional<uint64_t>
CompilerType::GetByteSize(ExecutionContextScope *exe_scope) const {
- if (auto bit_size = GetBitSize(exe_scope))
+ if (llvm::Optional<uint64_t> bit_size = GetBitSize(exe_scope))
return (*bit_size + 7) / 8;
return {};
}
@@ -819,7 +819,7 @@ bool CompilerType::GetValueAsScalar(const lldb_private::DataExtractor &data,
if (encoding == lldb::eEncodingInvalid || count != 1)
return false;
- auto byte_size = GetByteSize(nullptr);
+ llvm::Optional<uint64_t> byte_size = GetByteSize(nullptr);
if (!byte_size)
return false;
lldb::offset_t offset = data_byte_offset;
@@ -917,7 +917,7 @@ bool CompilerType::SetValueFromScalar(const Scalar &value, Stream &strm) {
if (encoding == lldb::eEncodingInvalid || count != 1)
return false;
- auto bit_width = GetBitSize(nullptr);
+ llvm::Optional<uint64_t> bit_width = GetBitSize(nullptr);
if (!bit_width)
return false;