This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][Clang Integration][NFC] Remove redundant condition
ClosedPublic

Authored by baloghadamsoftware on Jun 25 2020, 8:04 AM.

Details

Summary

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.

Diff Detail

Event Timeline

shafik accepted this revision.Jun 25 2020, 5:24 PM
shafik added a subscriber: shafik.

LGTM!

This revision is now accepted and ready to land.Jun 25 2020, 5:24 PM
This revision was automatically updated to reflect the committed changes.