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 | cb85497ddf082320ca8a62cf068d9120d26320f1 (patch) | |
tree | f494298a6fb1f7774b38d41ab3c34f5b14d10657 /llvm/lib/VMCore/PassRegistry.cpp | |
parent | 060d5ba2486d4c8b8ebd043c0a51ce7890795b27 (diff) | |
download | bcm5719-llvm-cb85497ddf082320ca8a62cf068d9120d26320f1.tar.gz bcm5719-llvm-cb85497ddf082320ca8a62cf068d9120d26320f1.zip |
Delete a redundant check.
llvm-svn: 116280
Diffstat (limited to 'llvm/lib/VMCore/PassRegistry.cpp')
-rw-r--r-- | llvm/lib/VMCore/PassRegistry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/PassRegistry.cpp b/llvm/lib/VMCore/PassRegistry.cpp index 47c10fad8d4..85fea2feeaf 100644 --- a/llvm/lib/VMCore/PassRegistry.cpp +++ b/llvm/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; } |