Move EE dtor where it belongs
[oota-llvm.git] / lib / ExecutionEngine / ExecutionEngine.cpp
index dbcaf63cdee879b9f2fb142d6447d71270fd3d90..a00c969908202fdc4a4ba7b2ea262ceb936222af 100644 (file)
 
 Statistic<> NumInitBytes("lli", "Number of bytes of global vars initialized");
 
+ExecutionEngine::~ExecutionEngine() {
+  delete &CurMod;
+}
+
 ExecutionEngine *ExecutionEngine::create (Module *M, bool ForceInterpreter,
                                          bool TraceMode) {
   ExecutionEngine *EE = 0;