Commit 11e7124d authored by Jaikrishnan Menon's avatar Jaikrishnan Menon

CPU: Run static destructors at teardown

parent 3fc3261f
......@@ -26,6 +26,10 @@ codegen::ExecutionEngine::ExecutionEngine()
codegen::ExecutionEngine::~ExecutionEngine()
{
if (m_execution_engine)
{
m_execution_engine->runStaticConstructorsDestructors(true);
}
}
bool codegen::ExecutionEngine::add_module(std::unique_ptr<llvm::Module>& module)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment