mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 23:52:45 +00:00
Remove redundant check.
llvm-svn: 351274
This commit is contained in:
parent
20fe3d2f35
commit
ee031dfacb
@ -341,11 +341,9 @@ Status Value::GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data,
|
||||
|
||||
uint32_t limit_byte_size = UINT32_MAX;
|
||||
|
||||
if (ast_type.IsValid()) {
|
||||
if (llvm::Optional<uint64_t> size = ast_type.GetByteSize(
|
||||
exe_ctx ? exe_ctx->GetBestExecutionContextScope() : nullptr))
|
||||
limit_byte_size = *size;
|
||||
}
|
||||
if (llvm::Optional<uint64_t> size = ast_type.GetByteSize(
|
||||
exe_ctx ? exe_ctx->GetBestExecutionContextScope() : nullptr))
|
||||
limit_byte_size = *size;
|
||||
|
||||
if (limit_byte_size <= m_value.GetByteSize()) {
|
||||
if (m_value.GetData(data, limit_byte_size))
|
||||
|
Loading…
Reference in New Issue
Block a user