summaryrefslogtreecommitdiff
path: root/include/llvm/PassRegistry.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-07 20:13:48 +0000
committerOwen Anderson <resistor@mac.com>2010-09-07 20:13:48 +0000
commitc88c11d607c5e3154dad679b11ad5326d1f0e8ac (patch)
tree924bc936e4f7838dc12a8559b2e250e8bccd62a0 /include/llvm/PassRegistry.h
parenta4b06f7c55a9620ca104f0e056da1ac423e16f78 (diff)
downloadllvm-c88c11d607c5e3154dad679b11ad5326d1f0e8ac.tar.gz
llvm-c88c11d607c5e3154dad679b11ad5326d1f0e8ac.tar.bz2
llvm-c88c11d607c5e3154dad679b11ad5326d1f0e8ac.tar.xz
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/PassRegistry.h')
-rw-r--r--include/llvm/PassRegistry.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h
index 1fb11ed64c..809dba0bc0 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.