summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-09 04:40:57 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-05-09 04:40:57 +0000
commit36851a66c8c98f005e4e9a65fc1bd8e267fa1d11 (patch)
treec92506054ab0da03de96c8445d41daf9e2bca739
parent76b9027f352a83c13c98820724071c5e3bea6232 (diff)
downloadbcm5719-llvm-36851a66c8c98f005e4e9a65fc1bd8e267fa1d11.tar.gz
bcm5719-llvm-36851a66c8c98f005e4e9a65fc1bd8e267fa1d11.zip
Fix up lldb after clang r360311.
Patch by Tyker! Differential Revision: https://reviews.llvm.org/D60934 llvm-svn: 360312
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 4a40c4db249..4d25bf37564 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -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(),
@@ -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;
@@ -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());
}
}
OpenPOWER on IntegriCloud