Author: Raphael Isemann Date: 2021-10-27T17:46:50+02:00 New Revision: 9d7006c4aee693a4c09f18cecd244da919ebe13b
URL: https://github.com/llvm/llvm-project/commit/9d7006c4aee693a4c09f18cecd244da919ebe13b DIFF: https://github.com/llvm/llvm-project/commit/9d7006c4aee693a4c09f18cecd244da919ebe13b.diff LOG: [lldb][NFC] Move a declaration in DWARFASTParserClang to its first use. Added: Modified: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index 0b3f83e70962..8affb05d56a2 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -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); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits