summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-05-20 21:30:33 +0000
committerLang Hames <lhames@gmail.com>2019-05-20 21:30:33 +0000
commit0dcf69eb82871bbf65505c841dba1441c70f4e0b (patch)
treef07e5c616ec211f3a6fb8300c77b9ac1d598cb71 /llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
parent4dfa665ebf1075965cdaf80c129637f95fa11440 (diff)
downloadbcm5719-llvm-0dcf69eb82871bbf65505c841dba1441c70f4e0b.tar.gz
bcm5719-llvm-0dcf69eb82871bbf65505c841dba1441c70f4e0b.zip
[ORC] Remove some unreachable code.
Fixes http://llvm.org/PR41662. llvm-svn: 361199
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp b/llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
index deabb040670..71518814136 100644
--- a/llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
@@ -139,13 +139,10 @@ Error CtorDtorRunner::run() {
CtorDtor();
}
}
+ CtorDtorsByPriority.clear();
return Error::success();
} else
return CtorDtorMap.takeError();
-
- CtorDtorsByPriority.clear();
-
- return Error::success();
}
void LocalCXXRuntimeOverridesBase::runDestructors() {
OpenPOWER on IntegriCloud