diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-19 01:05:34 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-19 01:05:34 +0000 |
commit | 453930d7c3d4fd822f4d89938a3d9e2a66f29b2a (patch) | |
tree | 997fb1d55a31edb2f070c615dfb7295ebf5c6e5d | |
parent | df9e3c6fb0b94dcff370eb1c840487f6349ac6a5 (diff) | |
download | bcm5719-llvm-453930d7c3d4fd822f4d89938a3d9e2a66f29b2a.tar.gz bcm5719-llvm-453930d7c3d4fd822f4d89938a3d9e2a66f29b2a.zip |
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
-rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index 0e5e3f9c123..0b59ca233d5 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()); |