Index: clang/lib/Sema/SemaType.cpp =================================================================== --- clang/lib/Sema/SemaType.cpp +++ clang/lib/Sema/SemaType.cpp @@ -950,7 +950,7 @@ // Retrieve the bound. QualType bound = typeParam->getUnderlyingType(); - const auto *boundObjC = bound->getAs(); + const auto *boundObjC = bound->castAs(); // Determine whether the type argument is substitutable for the bound. if (typeArgObjC->isObjCIdType()) {