[lldb] Fix buildbot failure due to clang AST change.

In r359949 several AST node constructors were modified without the
corresponding change in lldb, which caused build failures.

llvm-svn: 359966
This commit is contained in:
Nicolas Lesser 2019-05-04 10:21:50 +00:00
parent 08b28ce2f2
commit 9c32fa1b1f
1 changed files with 6 additions and 2 deletions

View File

@ -8167,6 +8167,10 @@ clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
if (is_artificial)
return nullptr; // skip everything artificial
const clang::ExplicitSpecifier explicit_spec(
nullptr /*expr*/, is_explicit
? clang::ExplicitSpecKind::ResolvedTrue
: clang::ExplicitSpecKind::ResolvedFalse);
if (name[0] == '~') {
cxx_dtor_decl = clang::CXXDestructorDecl::Create(
*getASTContext(), cxx_record_decl, clang::SourceLocation(),
@ -8185,7 +8189,7 @@ clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
clang::SourceLocation()),
method_qual_type,
nullptr, // TypeSourceInfo *
is_explicit, is_inline, is_artificial, false /*is_constexpr*/);
explicit_spec, is_inline, is_artificial, false /*is_constexpr*/);
cxx_method_decl = cxx_ctor_decl;
} else {
clang::StorageClass SC = is_static ? clang::SC_Static : clang::SC_None;
@ -8220,7 +8224,7 @@ clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
clang::SourceLocation()),
method_qual_type,
nullptr, // TypeSourceInfo *
is_inline, is_explicit, false /*is_constexpr*/,
is_inline, explicit_spec, false /*is_constexpr*/,
clang::SourceLocation());
}
}