Skip to content

Commit 18b61cf

Browse files
committed
address comment
1 parent f0e7d4f commit 18b61cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Core/Value.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,7 @@ Status Value::GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data,
488488
address = m_value.ULongLong(LLDB_INVALID_ADDRESS);
489489
address_type = eAddressTypeHost;
490490
if (exe_ctx) {
491-
Target *target = exe_ctx->GetTargetPtr();
492-
if (target) {
491+
if (Target *target = exe_ctx->GetTargetPtr()) {
493492
// Registers are always stored in host endian.
494493
data.SetByteOrder(m_context_type == ContextType::RegisterInfo
495494
? endian::InlHostByteOrder()

0 commit comments

Comments
 (0)