projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b0e47e
)
Delete a redundant check.
author
Dan Gohman
<gohman@apple.com>
Tue, 12 Oct 2010 00:19:24 +0000
(
00:19
+0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 12 Oct 2010 00:19:24 +0000
(
00:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116280
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/PassRegistry.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/PassRegistry.cpp
b/lib/VMCore/PassRegistry.cpp
index 47c10fad8d4b5fce08703ab068d9c2b919b62d02..85fea2feeafd448af32ad481a3433b567a6ca73f 100644
(file)
--- 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;
}