Skip to content

Commit ee031df

Browse files
committed
Remove redundant check.
llvm-svn: 351274
1 parent 20fe3d2 commit ee031df

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lldb/source/Core/Value.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,9 @@ Status Value::GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data,
341341

342342
uint32_t limit_byte_size = UINT32_MAX;
343343

344-
if (ast_type.IsValid()) {
345-
if (llvm::Optional<uint64_t> size = ast_type.GetByteSize(
346-
exe_ctx ? exe_ctx->GetBestExecutionContextScope() : nullptr))
347-
limit_byte_size = *size;
348-
}
344+
if (llvm::Optional<uint64_t> size = ast_type.GetByteSize(
345+
exe_ctx ? exe_ctx->GetBestExecutionContextScope() : nullptr))
346+
limit_byte_size = *size;
349347

350348
if (limit_byte_size <= m_value.GetByteSize()) {
351349
if (m_value.GetData(data, limit_byte_size))

0 commit comments

Comments
 (0)