Skip to content

Commit fde01e2

Browse files
committed
[Clang][AST] Don't use canonical type when checking dependence in Type::isOverloadable
1 parent 43ca631 commit fde01e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/Type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8434,7 +8434,7 @@ inline bool Type::isUndeducedType() const {
84348434
/// Determines whether this is a type for which one can define
84358435
/// an overloaded operator.
84368436
inline bool Type::isOverloadableType() const {
8437-
if (!CanonicalType->isDependentType())
8437+
if (!isDependentType())
84388438
return isRecordType() || isEnumeralType();
84398439
return !isArrayType() && !isFunctionType() && !isAnyPointerType() &&
84408440
!isMemberPointerType();

0 commit comments

Comments
 (0)