forked from OSchip/llvm-project
Remove set-but-unused variable
This commit is contained in:
parent
f1bb30a495
commit
3784fc493e
|
@ -1967,16 +1967,12 @@ bool DWARFASTParserClang::CompleteRecordType(const DWARFDIE &die,
|
|||
TypeSystemClang::StartTagDeclarationDefinition(clang_type);
|
||||
}
|
||||
|
||||
int tag_decl_kind = -1;
|
||||
AccessType default_accessibility = eAccessNone;
|
||||
if (tag == DW_TAG_structure_type) {
|
||||
tag_decl_kind = clang::TTK_Struct;
|
||||
default_accessibility = eAccessPublic;
|
||||
} else if (tag == DW_TAG_union_type) {
|
||||
tag_decl_kind = clang::TTK_Union;
|
||||
default_accessibility = eAccessPublic;
|
||||
} else if (tag == DW_TAG_class_type) {
|
||||
tag_decl_kind = clang::TTK_Class;
|
||||
default_accessibility = eAccessPrivate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue