[LLDB][Clang Integration][NFC] Remove redundant condition
authorAdam Balogh <adam.balogh@ericsson.com>
Thu, 25 Jun 2020 14:20:29 +0000 (16:20 +0200)
committerAdam Balogh <adam.balogh@ericsson.com>
Wed, 1 Jul 2020 07:04:26 +0000 (09:04 +0200)
commitff2d09148c91784c35b43c52f14b1501f38dd4c5
treee6c5b1647bda74a8316a293f0a0d466cc62fb304
parent1b2d2d70e1ec161878a78d880fb8972550b88185
[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
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp