From 24f1b337373dea3cd7f890024fb5c786ad85736b Mon Sep 17 00:00:00 2001 From: Siu Kwan Lam Date: Fri, 23 Aug 2013 10:59:47 -0500 Subject: [PATCH] Fix a ownership bug (thanks to cantora) --- llvmpy/src/Support/TargetRegistry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvmpy/src/Support/TargetRegistry.py b/llvmpy/src/Support/TargetRegistry.py index 2a445e7..04e08c7 100644 --- a/llvmpy/src/Support/TargetRegistry.py +++ b/llvmpy/src/Support/TargetRegistry.py @@ -14,7 +14,7 @@ from src.Support.CodeGen import Reloc, CodeModel, CodeGenOpt @Target class Target: - getNext = Method(const(ptr(Target))) + getNext = Method(const(ownedptr(Target))) getName = Method(cast(StdString, str)) getShortDescription = Method(cast(StdString, str))