diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp --- a/clang/lib/Sema/SemaType.cpp +++ b/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()) {