forked from OSchip/llvm-project
[lldb][NFC] Move a declaration in DWARFASTParserClang to its first use.
This commit is contained in:
parent
40c2bdf6d1
commit
9d7006c4ae
|
@ -2717,7 +2717,6 @@ void DWARFASTParserClang::ParseSingleMember(
|
|||
return;
|
||||
}
|
||||
|
||||
clang::FieldDecl *field_decl = nullptr;
|
||||
const uint64_t character_width = 8;
|
||||
const uint64_t word_width = 32;
|
||||
CompilerType member_clang_type = member_type->GetLayoutCompilerType();
|
||||
|
@ -2887,7 +2886,7 @@ void DWARFASTParserClang::ParseSingleMember(
|
|||
|
||||
RequireCompleteType(member_clang_type);
|
||||
|
||||
field_decl = TypeSystemClang::AddFieldToRecordType(
|
||||
clang::FieldDecl *field_decl = TypeSystemClang::AddFieldToRecordType(
|
||||
class_clang_type, attrs.name, member_clang_type, attrs.accessibility,
|
||||
attrs.bit_size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue