Skip to content

Commit ec50cf4

Browse files
authored
[lldb] Fix misleading indentation in ABISysV_x86_64.cpp (#2946)
Pre-emptive fix for [eventual use of](https://reviews.llvm.org/D102092) `-Wmisleading-indentation`. See also #2928. (cherry picked from #2935)
1 parent 71b27f3 commit ec50cf4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lldb/source/Plugins/ABI/X86/ABISysV_x86_64.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,14 +1147,14 @@ ValueObjectSP ABISysV_x86_64::GetReturnValueObjectImpl(
11471147
}
11481148

11491149
if (!already_copied) {
1150-
// These two tests are just sanity checks. If I somehow get the type
1151-
// calculation wrong above it is better to just return nothing than to
1152-
// assert or crash.
1153-
if (!copy_from_extractor)
1154-
return return_valobj_sp;
1155-
if (copy_from_offset + field_byte_width >
1156-
copy_from_extractor->GetByteSize())
1157-
return return_valobj_sp;
1150+
// These two tests are just sanity checks. If I somehow get the type
1151+
// calculation wrong above it is better to just return nothing than to
1152+
// assert or crash.
1153+
if (!copy_from_extractor)
1154+
return return_valobj_sp;
1155+
if (copy_from_offset + field_byte_width >
1156+
copy_from_extractor->GetByteSize())
1157+
return return_valobj_sp;
11581158

11591159
copy_from_extractor->CopyByteOrderedData(
11601160
copy_from_offset, field_byte_width,

0 commit comments

Comments
 (0)