diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/PassRegistry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/PassRegistry.cpp b/llvm/lib/VMCore/PassRegistry.cpp index 47c10fad8d4..85fea2feeaf 100644 --- a/llvm/lib/VMCore/PassRegistry.cpp +++ b/llvm/lib/VMCore/PassRegistry.cpp @@ -70,7 +70,7 @@ void *PassRegistry::getImpl() const { PassRegistry::~PassRegistry() { sys::SmartScopedLock<true> Guard(*Lock); PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(pImpl); - if (Impl) delete Impl; + delete Impl; pImpl = 0; } |