Fix TargetMachine ownership in EngineBuilder.
This commit is contained in:
parent
8b58488bbd
commit
91a10e6a8e
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ class EngineBuilder(object):
|
|||
raise llvm.LLVMException(ret)
|
||||
engine = ExecutionEngine(ret, self._module)
|
||||
if tm:
|
||||
tm._own(owner=engine)
|
||||
tm._own(owner=llvm.DummyOwner)
|
||||
return engine
|
||||
|
||||
def select_target(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue