Skip to content

Commit 76fbd61

Browse files
committed
jitlayers: move the local dylibs ahead of the global one
1 parent 1f161b4 commit 76fbd61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jitlayers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,8 +1469,8 @@ void JuliaOJIT::addModule(orc::ThreadSafeModule TSM)
14691469

14701470
JL_JITSymbol JuliaOJIT::findSymbol(StringRef Name, bool ExportedSymbolsOnly)
14711471
{
1472-
orc::JITDylib* SearchOrders[2] = {&GlobalJD, &JD};
1473-
ArrayRef<orc::JITDylib*> SearchOrder = makeArrayRef(&SearchOrders[ExportedSymbolsOnly ? 0 : 1], ExportedSymbolsOnly ? 2 : 1);
1472+
orc::JITDylib* SearchOrders[2] = {&JD, &GlobalJD};
1473+
ArrayRef<orc::JITDylib*> SearchOrder = makeArrayRef(&SearchOrders[0], ExportedSymbolsOnly ? 2 : 1);
14741474
auto Sym = ES.lookup(SearchOrder, Name);
14751475
if (Sym)
14761476
return *Sym;

0 commit comments

Comments
 (0)