[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Don't leak memory when multiplexing ExternalASTSources (PR #104799)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 19 10:10:22 PDT 2024
================
@@ -1224,15 +1224,15 @@ ClangExpressionParser::ParseInternal(DiagnosticManager &diagnostic_manager,
clang::ExternalASTSource *ast_source = decl_map->CreateProxy();
if (ast_context.getExternalSource()) {
- auto module_wrapper =
+ auto *module_wrapper =
new ExternalASTSourceWrapper(ast_context.getExternalSource());
- auto ast_source_wrapper = new ExternalASTSourceWrapper(ast_source);
+ auto *ast_source_wrapper = new ExternalASTSourceWrapper(ast_source);
- auto multiplexer =
- new SemaSourceWithPriorities(*module_wrapper, *ast_source_wrapper);
- IntrusiveRefCntPtr<ExternalASTSource> Source(multiplexer);
----------------
Michael137 wrote:
All changes in this file are drive-by stylistic changes.
https://github.com/llvm/llvm-project/pull/104799
More information about the lldb-commits
mailing list