Delete a redundant check.
authorDan Gohman <gohman@apple.com>
Tue, 12 Oct 2010 00:19:24 +0000 (00:19 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 12 Oct 2010 00:19:24 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116280 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/PassRegistry.cpp

index 47c10fad8d4b5fce08703ab068d9c2b919b62d02..85fea2feeafd448af32ad481a3433b567a6ca73f 100644 (file)
@@ -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;
 }