summaryrefslogtreecommitdiff
path: root/lib/VMCore/PassRegistry.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-12 00:19:24 +0000
committerDan Gohman <gohman@apple.com>2010-10-12 00:19:24 +0000
commit624218f5b418a69091b4836f0de6f12fb6bff5e4 (patch)
tree85534b5b75a9e93c5c12816be2869ca8d2c1805c /lib/VMCore/PassRegistry.cpp
parent9b0e47efc607f6dcfca34e033d56e4655a7bb893 (diff)
downloadllvm-624218f5b418a69091b4836f0de6f12fb6bff5e4.tar.gz
llvm-624218f5b418a69091b4836f0de6f12fb6bff5e4.tar.bz2
llvm-624218f5b418a69091b4836f0de6f12fb6bff5e4.tar.xz
Delete a redundant check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassRegistry.cpp')
-rw-r--r--lib/VMCore/PassRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
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<true> Guard(*Lock);
PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(pImpl);
- if (Impl) delete Impl;
+ delete Impl;
pImpl = 0;
}