Replace auto -> llvm::Optional<uint64_t>
This addresses post-commit feedback for https://reviews.llvm.org/D56688
llvm-svn: 351237
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
index 1a4a143..d66ee83 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
@@ -310,7 +310,7 @@
lldb::TargetSP target_sp(m_execution_unit.GetTarget());
lldb_private::ExecutionContext exe_ctx(target_sp, true);
- auto bit_size =
+ llvm::Optional<uint64_t> bit_size =
m_result_type.GetBitSize(exe_ctx.GetBestExecutionContextScope());
if (!bit_size) {
lldb_private::StreamString type_desc_stream;
@@ -1372,7 +1372,7 @@
value_type = global_variable->getType();
}
- auto value_size = compiler_type.GetByteSize(nullptr);
+ llvm::Optional<uint64_t> value_size = compiler_type.GetByteSize(nullptr);
if (!value_size)
return false;
lldb::offset_t value_alignment =