mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix double-free of Module.
The ExecutionEngine constructor already added the module, so there's no need to call addModule() directly. Doing so causes a double-free of the Module at program termination. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7614783f2d
commit
66978bd81c
@ -78,7 +78,6 @@ MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji,
|
||||
}
|
||||
|
||||
// Initialize passes.
|
||||
ExecutionEngine::addModule(M);
|
||||
// FIXME: When we support multiple modules, we'll want to move the code
|
||||
// gen and finalization out of the constructor here and do it more
|
||||
// on-demand as part of getPointerToFunction().
|
||||
|
Loading…
Reference in New Issue
Block a user