From 624218f5b418a69091b4836f0de6f12fb6bff5e4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 12 Oct 2010 00:19:24 +0000 Subject: Delete a redundant check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116280 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassRegistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VMCore/PassRegistry.cpp') diff --git a/lib/VMCore/PassRegistry.cpp b/lib/VMCore/PassRegistry.cpp index 47c10fad8d..85fea2feea 100644 --- a/lib/VMCore/PassRegistry.cpp +++ b/lib/VMCore/PassRegistry.cpp @@ -70,7 +70,7 @@ void *PassRegistry::getImpl() const { PassRegistry::~PassRegistry() { sys::SmartScopedLock Guard(*Lock); PassRegistryImpl *Impl = static_cast(pImpl); - if (Impl) delete Impl; + delete Impl; pImpl = 0; } -- cgit v1.2.3