[Lldb-commits] [lldb] fa72ce3 - Another speculative fix for lldb related to ConstexprSpecKind
Aaron Ballman via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 16 11:41:33 PST 2020
Author: Aaron Ballman
Date: 2020-11-16T14:39:34-05:00
New Revision: fa72ce346c5f81ef96901fce0b6b23fa4faaa33e
URL: https://github.com/llvm/llvm-project/commit/fa72ce346c5f81ef96901fce0b6b23fa4faaa33e
DIFF: https://github.com/llvm/llvm-project/commit/fa72ce346c5f81ef96901fce0b6b23fa4faaa33e.diff
LOG: Another speculative fix for lldb related to ConstexprSpecKind
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.cpp b/lldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.cpp
index c1f88889f1dc..829afa5ffcec 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.cpp
@@ -78,7 +78,8 @@ clang::NamedDecl *NameSearchContext::AddFunDecl(const CompilerType &type,
clang::FunctionDecl *func_decl = FunctionDecl::Create(
ast, context, SourceLocation(), SourceLocation(), decl_name, qual_type,
nullptr, SC_Extern, isInlineSpecified, hasWrittenPrototype,
- isConstexprSpecified ? CSK_constexpr : CSK_unspecified);
+ isConstexprSpecified ? ConstexprSpecKind::Constexpr
+ : ConstexprSpecKind::Unspecified);
// We have to do more than just synthesize the FunctionDecl. We have to
// synthesize ParmVarDecls for all of the FunctionDecl's arguments. To do
More information about the lldb-commits
mailing list