diff options
author | Sean Callanan <scallanan@apple.com> | 2016-08-27 00:20:38 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2016-08-27 00:20:38 +0000 |
commit | 8a33f6124cfa8da4c08a3b942891156056312af3 (patch) | |
tree | e3fb825f13ccab2d4c0c0f06795e25f6c9221a2e /lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | |
parent | bc3940e7ec60355b23b0bd85621923ba2ab5506b (diff) | |
download | bcm5719-llvm-8a33f6124cfa8da4c08a3b942891156056312af3.tar.gz bcm5719-llvm-8a33f6124cfa8da4c08a3b942891156056312af3.zip |
The error stream in IRForTarget is never null, so use it instead of the log.
llvm-svn: 279894
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp index dd8be5ddffc..b222048498a 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp @@ -875,10 +875,9 @@ ClangExpressionParser::PrepareForExecution (lldb::addr_t &func_addr, { Stream *error_stream = NULL; Target *target = exe_ctx.GetTargetPtr(); - if (target) - error_stream = target->GetDebugger().GetErrorFile().get(); + error_stream = target->GetDebugger().GetErrorFile().get(); - IRForTarget ir_for_target(decl_map, m_expr.NeedsVariableResolution(), *execution_unit_sp, error_stream, + IRForTarget ir_for_target(decl_map, m_expr.NeedsVariableResolution(), *execution_unit_sp, *error_stream, function_name.AsCString()); bool ir_can_run = ir_for_target.runOnModule(*execution_unit_sp->GetModule()); |