Skip to content

Commit 07dfa5b

Browse files
Address a comment.
1 parent 3ad0d63 commit 07dfa5b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/include/clang/AST/TypeBase.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9092,9 +9092,7 @@ inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &PD,
90929092

90939093
// Helper class template that is used by Type::getAs to ensure that one does
90949094
// not try to look through a qualified type to get to an array type.
9095-
template <typename T>
9096-
using TypeIsArrayType = std::bool_constant<std::is_same_v<T, ArrayType> ||
9097-
std::is_base_of_v<ArrayType, T>>;
9095+
template <typename T> using TypeIsArrayType = std::is_base_of<ArrayType, T>;
90989096

90999097
// Member-template getAs<specific type>'.
91009098
template <typename T> const T *Type::getAs() const {

0 commit comments

Comments
 (0)