Fix double-free of Module.
authorJim Grosbach <grosbach@apple.com>
Wed, 23 Mar 2011 21:35:02 +0000 (21:35 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 23 Mar 2011 21:35:02 +0000 (21:35 +0000)
commit66978bd81c8f3dc87ced049e2577b98a399d72bc
treecd9493bb6bda4f35fc26a028a4af65d632edb6a6
parent7614783f2dbf1090c3a4888bc70e1eb2baee37c4
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
lib/ExecutionEngine/MCJIT/MCJIT.cpp