diff --git a/lldb/source/Plugins/LanguageRuntime/Swift/ReflectionContext.cpp b/lldb/source/Plugins/LanguageRuntime/Swift/ReflectionContext.cpp index 45be99d1259d8..ee0e5505c6d7d 100644 --- a/lldb/source/Plugins/LanguageRuntime/Swift/ReflectionContext.cpp +++ b/lldb/source/Plugins/LanguageRuntime/Swift/ReflectionContext.cpp @@ -93,14 +93,14 @@ template class TargetReflectionContext : public ReflectionContextInterface { DescriptorFinderForwarder m_forwader; ReflectionContext m_reflection_ctx; - swift::reflection::TypeConverter m_type_converter; + swift::reflection::TypeConverter &m_type_converter; public: TargetReflectionContext( std::shared_ptr reader, SwiftMetadataCache *swift_metadata_cache) : m_reflection_ctx(reader, swift_metadata_cache, &m_forwader), - m_type_converter(m_reflection_ctx.getBuilder()) { + m_type_converter(m_reflection_ctx.getBuilder().getTypeConverter()) { m_type_converter.enableErrorCache(); }