diff options
author | Owen Anderson <resistor@mac.com> | 2010-09-07 20:48:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-09-07 20:48:10 +0000 |
commit | 381f17ee7c07b5a80d7dcdeae3d62e497902ef85 (patch) | |
tree | 004dfc9ead5654ca88b54ae2fea40a98446dc3f3 /include/llvm/PassRegistry.h | |
parent | a830f2c4ea8ce1d1bea6823e8b8585eafa7caf33 (diff) | |
download | llvm-381f17ee7c07b5a80d7dcdeae3d62e497902ef85.tar.gz llvm-381f17ee7c07b5a80d7dcdeae3d62e497902ef85.tar.bz2 llvm-381f17ee7c07b5a80d7dcdeae3d62e497902ef85.tar.xz |
Fix PR7972, in which the PassRegistry was being leaked. As part of this,
switch to using a ManagedStatic for the global PassRegistry instead of a
ManagedCleanup, and fix a destruction ordering bug this exposed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassRegistry.h')
-rw-r--r-- | include/llvm/PassRegistry.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h index 809dba0bc0..fa269a9c5a 100644 --- a/include/llvm/PassRegistry.h +++ b/include/llvm/PassRegistry.h @@ -37,6 +37,7 @@ class PassRegistry { public: PassRegistry() : pImpl(0) { } + ~PassRegistry(); /// getPassRegistry - Access the global registry object, which is /// automatically initialized at application launch and destroyed by |