From 453930d7c3d4fd822f4d89938a3d9e2a66f29b2a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 19 Aug 2015 01:05:34 +0000 Subject: [PATCH] Fix LLDB after Clang r245346. The right thing to do here would be to give the ASTConsumer to the CompilerInstance so it can set things up for us, but we can't do that because we don't own it. So instead just initialize it ourselves. llvm-svn: 245397 --- lldb/source/Expression/ClangExpressionParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index 0e5e3f9c1230..0b59ca233d51 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -410,6 +410,7 @@ ClangExpressionParser::Parse (Stream &stream) diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor()); ASTConsumer *ast_transformer = m_expr.ASTTransformer(m_code_generator.get()); + ast_transformer->Initialize(m_compiler->getASTContext()); if (ClangExpressionDeclMap *decl_map = m_expr.DeclMap()) decl_map->InstallCodeGenerator(m_code_generator.get());