diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-03-14 22:03:02 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-03-14 22:03:02 +0000 |
commit | 59dc98de2f79c027eb6860443daee260710b1405 (patch) | |
tree | 826e84a229b60d3e74f1fb42e1a759927f9d9556 /include/llvm/Use.h | |
parent | f8e43be758c94e21634d1e9e7c22fd5d218f7423 (diff) | |
download | llvm-59dc98de2f79c027eb6860443daee260710b1405.tar.gz llvm-59dc98de2f79c027eb6860443daee260710b1405.tar.bz2 llvm-59dc98de2f79c027eb6860443daee260710b1405.tar.xz |
move the Use destructor where it belongs to
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Use.h')
-rw-r--r-- | include/llvm/Use.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Use.h b/include/llvm/Use.h index c5a3212ed8..c81a903e8b 100644 --- a/include/llvm/Use.h +++ b/include/llvm/Use.h @@ -37,7 +37,9 @@ public: Use(Value *V, User *U) { init(V, U); } Use(const Use &U) { init(U.Val, U.U); } - inline ~Use(); + inline ~Use() { + if (Val) removeFromList(); + } /// Default ctor - This leaves the Use completely unitialized. The only thing /// that is valid to do with this use is to call the "init" method. |