[llvm] r334918 - [ORC] Remove redundant condition
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 17 16:54:58 PDT 2018
Author: lhames
Date: Sun Jun 17 16:54:58 2018
New Revision: 334918
URL: http://llvm.org/viewvc/llvm-project?rev=334918&view=rev
Log:
[ORC] Remove redundant condition
Modified:
llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp?rev=334918&r1=334917&r2=334918&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp Sun Jun 17 16:54:58 2018
@@ -883,7 +883,7 @@ Error VSO::defineImpl(MaterializationUni
if (!Duplicates.empty()) {
// We need to remove the symbols we added.
for (auto &KV : MU.getSymbols()) {
- if (Duplicates.count(KV.first) || Duplicates.count(KV.first))
+ if (Duplicates.count(KV.first))
continue;
bool Found = false;
More information about the llvm-commits
mailing list