From b3bf7f86cd3ba4da7cb09aa4607050604eda6ea4 Mon Sep 17 00:00:00 2001 From: anthony cantor Date: Tue, 27 Aug 2013 14:59:30 -0600 Subject: [PATCH] MCExpr pointer is owned by the MCOperand object --- llvmpy/src/MC/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvmpy/src/MC/__init__.py b/llvmpy/src/MC/__init__.py index 6f05a01..7536363 100644 --- a/llvmpy/src/MC/__init__.py +++ b/llvmpy/src/MC/__init__.py @@ -57,7 +57,7 @@ class MCOperand: getReg = Method(cast(Unsigned, int)) getImm = Method(cast(Int64, int)) getFPImm = Method(cast(Double, float)) - getExpr = Method(const(ptr(MCExpr))) + getExpr = Method(const(ownedptr(MCExpr))) @MCInst class MCInst: