diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-12 00:19:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-12 00:19:24 +0000 |
commit | 624218f5b418a69091b4836f0de6f12fb6bff5e4 (patch) | |
tree | 85534b5b75a9e93c5c12816be2869ca8d2c1805c /lib/VMCore/PassRegistry.cpp | |
parent | 9b0e47efc607f6dcfca34e033d56e4655a7bb893 (diff) | |
download | llvm-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.cpp | 2 |
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; } |