Skip to content

Commit

Permalink
Fix up lldb after clang r360311.
Browse files Browse the repository at this point in the history
Patch by Tyker!

Differential Revision: https://reviews.llvm.org/D60934

llvm-svn: 360312
  • Loading branch information
zygoloid committed May 9, 2019
1 parent 76b9027 commit 36851a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lldb/source/Symbol/ClangASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8173,6 +8173,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(),
Expand All @@ -8191,7 +8195,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;
Expand Down Expand Up @@ -8226,7 +8230,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());
}
}
Expand Down

0 comments on commit 36851a6

Please sign in to comment.