summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Value.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-01-15 20:33:58 +0000
committerAdrian Prantl <aprantl@apple.com>2019-01-15 20:33:58 +0000
commitd6a9bbf68e2c795d0d2d7f831235ed14af978f87 (patch)
tree87a0eb5e4ce3d616030c83aa16c8bc6faf085791 /lldb/source/Core/Value.cpp
parent3cdd1a7d47f3a51c67979d28ce542a2f03c12d0c (diff)
downloadbcm5719-llvm-d6a9bbf68e2c795d0d2d7f831235ed14af978f87.tar.gz
bcm5719-llvm-d6a9bbf68e2c795d0d2d7f831235ed14af978f87.zip
Replace auto -> llvm::Optional<uint64_t>
This addresses post-commit feedback for https://reviews.llvm.org/D56688 llvm-svn: 351237
Diffstat (limited to 'lldb/source/Core/Value.cpp')
-rw-r--r--lldb/source/Core/Value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Value.cpp b/lldb/source/Core/Value.cpp
index bd942fd2187..873bd6672fd 100644
--- a/lldb/source/Core/Value.cpp
+++ b/lldb/source/Core/Value.cpp
@@ -224,7 +224,7 @@ uint64_t Value::GetValueByteSize(Status *error_ptr, ExecutionContext *exe_ctx) {
{
const CompilerType &ast_type = GetCompilerType();
if (ast_type.IsValid())
- if (auto size = ast_type.GetByteSize(
+ if (llvm::Optional<uint64_t> size = ast_type.GetByteSize(
exe_ctx ? exe_ctx->GetBestExecutionContextScope() : nullptr))
byte_size = *size;
} break;
@@ -346,7 +346,7 @@ Status Value::GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data,
uint32_t limit_byte_size = UINT32_MAX;
if (ast_type.IsValid()) {
- if (auto size = ast_type.GetByteSize(
+ if (llvm::Optional<uint64_t> size = ast_type.GetByteSize(
exe_ctx ? exe_ctx->GetBestExecutionContextScope() : nullptr))
limit_byte_size = *size;
}
OpenPOWER on IntegriCloud