llvm.org GIT mirror llvm / d3ac784
[llvm.py] Make LLVMObject.__del__ work if called during __init__ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152505 91177308-0d34-0410-b5e6-96231b3b80d8 Gregory Szorc 7 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5757 return self._as_parameter_
5858
5959 def __del__(self):
60 if not hasattr(self, '_self_owned') or not hasattr(self, '_disposer'):
61 return
62
6063 if self._self_owned and self._disposer:
6164 self._disposer(self)
6265