diff options
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index c16e1266b91..15ba25038af 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -2663,11 +2663,10 @@ IRForTarget::runOnModule (Module &llvm_module) IRInterpreter interpreter (*m_decl_map, m_error_stream); - if (interpreter.maybeRunOnFunction(m_const_result, m_result_name, m_result_type, *function, llvm_module)) - { - m_interpret_success = true; + interpreter.maybeRunOnFunction(m_const_result, m_result_name, m_result_type, *function, llvm_module, m_interpreter_error); + + if (m_interpreter_error.Success()) return true; - } } if (log && log->GetVerbose()) |