[llvm-commits] [llvm] r116280 - /llvm/trunk/lib/VMCore/PassRegistry.cpp

Dan Gohman gohman at apple.com
Mon Oct 11 17:19:24 PDT 2010


Author: djg
Date: Mon Oct 11 19:19:24 2010
New Revision: 116280

URL: http://llvm.org/viewvc/llvm-project?rev=116280&view=rev
Log:
Delete a redundant check.

Modified:
    llvm/trunk/lib/VMCore/PassRegistry.cpp

Modified: llvm/trunk/lib/VMCore/PassRegistry.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassRegistry.cpp?rev=116280&r1=116279&r2=116280&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassRegistry.cpp (original)
+++ llvm/trunk/lib/VMCore/PassRegistry.cpp Mon Oct 11 19:19:24 2010
@@ -70,7 +70,7 @@
 PassRegistry::~PassRegistry() {
   sys::SmartScopedLock<true> Guard(*Lock);
   PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(pImpl);
-  if (Impl) delete Impl;
+  delete Impl;
   pImpl = 0;
 }
 





More information about the llvm-commits mailing list