diff options
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 3645169..8e9258a 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -2364,17 +2364,15 @@ QualType CXXMethodDecl::getThisType() const { // volatile X*, and if the member function is declared const volatile, // the type of this is const volatile X*. assert(isInstance() && "No 'this' for static methods!"); - - return CXXMethodDecl::getThisType(getType()->getAs<FunctionProtoType>(), + return CXXMethodDecl::getThisType(getType()->castAs<FunctionProtoType>(), getParent()); } QualType CXXMethodDecl::getThisObjectType() const { // Ditto getThisType. assert(isInstance() && "No 'this' for static methods!"); - - return CXXMethodDecl::getThisObjectType(getType()->getAs<FunctionProtoType>(), - getParent()); + return CXXMethodDecl::getThisObjectType( + getType()->castAs<FunctionProtoType>(), getParent()); } bool CXXMethodDecl::hasInlineBody() const { |
