Unverified Commit 094f2fa9 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

Merge pull request #299 from NervanaSystems/jmenon/dtors

CPU: Run static destructors at teardown
parents 3fc3261f 11e7124d
...@@ -26,6 +26,10 @@ codegen::ExecutionEngine::ExecutionEngine() ...@@ -26,6 +26,10 @@ codegen::ExecutionEngine::ExecutionEngine()
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) 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