Index: clang/lib/Sema/SemaDeclCXX.cpp =================================================================== --- clang/lib/Sema/SemaDeclCXX.cpp +++ clang/lib/Sema/SemaDeclCXX.cpp @@ -7517,7 +7517,7 @@ } } - const FunctionProtoType *Type = MD->getType()->getAs(); + const FunctionProtoType *Type = MD->getType()->castAs(); bool CanHaveConstParam = false; if (CSM == CXXCopyConstructor)