This is an archive of the discontinued LLVM Phabricator instance.

[Sema][NFC] Remove Redundant Condition
ClosedPublic

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

Details

Summary

Condition TypeQuals is checked both in an outer and in an inner if statement in static function ConvertDeclSpecToType() in file SemaType.cpp. 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

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