diff options
Diffstat (limited to 'lldb/source/Symbol/ClangASTContext.cpp')
| -rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 5c78e9ff0c9..0664db37a04 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -1917,13 +1917,11 @@ FunctionDecl *ClangASTContext::CreateFunctionDeclaration( return func_decl; } -CompilerType ClangASTContext::CreateFunctionType( - ASTContext *ast, const CompilerType &result_type, const CompilerType *args, - unsigned num_args, bool is_variadic, unsigned type_quals, - clang::CallingConv cc) { - if (ast == nullptr) - return CompilerType(); // invalid AST - +CompilerType +ClangASTContext::CreateFunctionType(const CompilerType &result_type, + const CompilerType *args, unsigned num_args, + bool is_variadic, unsigned type_quals, + clang::CallingConv cc) { if (!result_type || !ClangUtil::IsClangType(result_type)) return CompilerType(); // invalid return type @@ -1954,9 +1952,11 @@ CompilerType ClangASTContext::CreateFunctionType( proto_info.TypeQuals = clang::Qualifiers::fromFastMask(type_quals); proto_info.RefQualifier = RQ_None; - return CompilerType(ClangASTContext::GetASTContext(ast), - ast->getFunctionType(ClangUtil::GetQualType(result_type), - qual_type_args, proto_info).getAsOpaquePtr()); + return CompilerType(this, + getASTContext() + .getFunctionType(ClangUtil::GetQualType(result_type), + qual_type_args, proto_info) + .getAsOpaquePtr()); } ParmVarDecl *ClangASTContext::CreateParameterDeclaration( |

