forked from OSchip/llvm-project
[LLDB][Clang Integration][NFC] Remove redundant condition
Condition `omit_empty_base_classes` is checked both in an outer and in an inner `if` statement in `TypeSystemClang::GetNumBaseClasses()`. This patch removes the redundant inner check. The issue was found using `clang-tidy` check under review `misc-redundant-condition`. See https://reviews.llvm.org/D81272. Differential Revision: https://reviews.llvm.org/D82559
This commit is contained in:
parent
1b2d2d70e1
commit
ff2d09148c
|
@ -1729,10 +1729,8 @@ TypeSystemClang::GetNumBaseClasses(const CXXRecordDecl *cxx_record_decl,
|
|||
base_class_end = cxx_record_decl->bases_end();
|
||||
base_class != base_class_end; ++base_class) {
|
||||
// Skip empty base classes
|
||||
if (omit_empty_base_classes) {
|
||||
if (BaseSpecifierIsEmpty(base_class))
|
||||
continue;
|
||||
}
|
||||
if (BaseSpecifierIsEmpty(base_class))
|
||||
continue;
|
||||
++num_bases;
|
||||
}
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue