diff options
author | Owen Anderson <resistor@mac.com> | 2010-09-07 20:13:48 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-09-07 20:13:48 +0000 |
commit | c88c11d607c5e3154dad679b11ad5326d1f0e8ac (patch) | |
tree | 924bc936e4f7838dc12a8559b2e250e8bccd62a0 /include/llvm | |
parent | a4b06f7c55a9620ca104f0e056da1ac423e16f78 (diff) | |
download | external_llvm-c88c11d607c5e3154dad679b11ad5326d1f0e8ac.zip external_llvm-c88c11d607c5e3154dad679b11ad5326d1f0e8ac.tar.gz external_llvm-c88c11d607c5e3154dad679b11ad5326d1f0e8ac.tar.bz2 |
Properly initialize the pImpl member of PassRegistry to zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/PassRegistry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h index 1fb11ed..809dba0 100644 --- a/include/llvm/PassRegistry.h +++ b/include/llvm/PassRegistry.h @@ -36,6 +36,8 @@ class PassRegistry { void *getImpl() const; public: + PassRegistry() : pImpl(0) { } + /// getPassRegistry - Access the global registry object, which is /// automatically initialized at application launch and destroyed by /// llvm_shutdown. |