Skip to content

Commit 9e37cbb

Browse files
committed
[ORC] Add some missing FIXMEs, move a temporary Error into an if condition.
1 parent f22c9dd commit 9e37cbb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/ExecutionEngine/Orc/JITLinkRedirectableSymbolManager.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,18 @@ void JITLinkRedirectableSymbolManager::emitRedirectableSymbols(
5252
return;
5353
}
5454

55+
// FIXME: return stubs to the pool here too.
5556
if (auto Err = R->replace(absoluteSymbols(NewSymbolDefs))) {
5657
ES.reportError(std::move(Err));
5758
R->failMaterialization();
5859
return;
5960
}
6061

61-
auto Err = R->withResourceKeyDo([&](ResourceKey Key) {
62-
TrackedResources[Key].insert(TrackedResources[Key].end(), Symbols.begin(),
63-
Symbols.end());
64-
});
65-
if (Err) {
62+
// FIXME: return stubs to the pool here too.
63+
if (auto Err = R->withResourceKeyDo([&](ResourceKey Key) {
64+
TrackedResources[Key].insert(TrackedResources[Key].end(),
65+
Symbols.begin(), Symbols.end());
66+
})) {
6667
ES.reportError(std::move(Err));
6768
R->failMaterialization();
6869
return;

0 commit comments

Comments
 (0)