[PATCH] D91707: [Orc] Two small fixes in TPCDynamicLibrarySearchGenerator

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 8 01:58:56 PST 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc54d827fdb12: [Orc] Two small fixes in TPCDynamicLibrarySearchGenerator (authored by sgraenitz).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91707/new/

https://reviews.llvm.org/D91707

Files:
  llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp


Index: llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
+++ llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
@@ -50,12 +50,13 @@
   assert(Result->front().size() == LookupSymbols.size() &&
          "Result has incorrect number of elements");
 
-  SymbolNameVector MissingSymbols;
   auto ResultI = Result->front().begin();
-  for (auto &KV : LookupSymbols)
+  for (auto &KV : LookupSymbols) {
     if (*ResultI)
       NewSymbols[KV.first] =
-          JITEvaluatedSymbol(*ResultI++, JITSymbolFlags::Exported);
+          JITEvaluatedSymbol(*ResultI, JITSymbolFlags::Exported);
+    ResultI++;
+  }
 
   // If there were no resolved symbols bail out.
   if (NewSymbols.empty())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91707.310114.patch
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201208/4071d37b/attachment.bin>


More information about the llvm-commits mailing list