Skip to content

Commit 9c32fa1

Browse files
committedMay 4, 2019
[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
1 parent 08b28ce commit 9c32fa1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎lldb/source/Symbol/ClangASTContext.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -8167,6 +8167,10 @@ clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
81678167
if (is_artificial)
81688168
return nullptr; // skip everything artificial
81698169

8170+
const clang::ExplicitSpecifier explicit_spec(
8171+
nullptr /*expr*/, is_explicit
8172+
? clang::ExplicitSpecKind::ResolvedTrue
8173+
: clang::ExplicitSpecKind::ResolvedFalse);
81708174
if (name[0] == '~') {
81718175
cxx_dtor_decl = clang::CXXDestructorDecl::Create(
81728176
*getASTContext(), cxx_record_decl, clang::SourceLocation(),
@@ -8185,7 +8189,7 @@ clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
81858189
clang::SourceLocation()),
81868190
method_qual_type,
81878191
nullptr, // TypeSourceInfo *
8188-
is_explicit, is_inline, is_artificial, false /*is_constexpr*/);
8192+
explicit_spec, is_inline, is_artificial, false /*is_constexpr*/);
81898193
cxx_method_decl = cxx_ctor_decl;
81908194
} else {
81918195
clang::StorageClass SC = is_static ? clang::SC_Static : clang::SC_None;
@@ -8220,7 +8224,7 @@ clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
82208224
clang::SourceLocation()),
82218225
method_qual_type,
82228226
nullptr, // TypeSourceInfo *
8223-
is_inline, is_explicit, false /*is_constexpr*/,
8227+
is_inline, explicit_spec, false /*is_constexpr*/,
82248228
clang::SourceLocation());
82258229
}
82268230
}

0 commit comments

Comments
 (0)
Please sign in to comment.