diff --git a/lldb/include/lldb/Core/RichManglingContext.h b/lldb/include/lldb/Core/RichManglingContext.h index ecd11e93f044d..9636b7898f8f5 100644 --- a/lldb/include/lldb/Core/RichManglingContext.h +++ b/lldb/include/lldb/Core/RichManglingContext.h @@ -86,7 +86,7 @@ class RichManglingContext { /// trait to deduce \a ParserT from a given InfoProvider, but unfortunately we /// can't access CPlusPlusLanguage::MethodName from within the header. template static ParserT *get(llvm::Any parser) { - assert(parser.hasValue()); + assert(parser.has_value()); assert(llvm::any_isa(parser)); return llvm::any_cast(parser); } diff --git a/lldb/source/Core/RichManglingContext.cpp b/lldb/source/Core/RichManglingContext.cpp index 64b18b401f2d6..08c9b280b8ccb 100644 --- a/lldb/source/Core/RichManglingContext.cpp +++ b/lldb/source/Core/RichManglingContext.cpp @@ -24,7 +24,7 @@ RichManglingContext::~RichManglingContext() { void RichManglingContext::ResetCxxMethodParser() { // If we want to support parsers for other languages some day, we need a // switch here to delete the correct parser type. - if (m_cxx_method_parser.hasValue()) { + if (m_cxx_method_parser.has_value()) { assert(m_provider == PluginCxxLanguage); delete get(m_cxx_method_parser); m_cxx_method_parser.reset();