[llvm-jitlink] Fix a FIXME.

ORC errors preserve the SymbolStringPool since 6fe2e9a9cc, so we can stop
bailing out early.
This commit is contained in:
Lang Hames 2021-09-30 17:25:20 -07:00
parent 657e1e316b
commit d908118b8a
1 changed files with 2 additions and 4 deletions

View File

@ -839,10 +839,8 @@ Expected<std::unique_ptr<Session>> Session::Create(Triple TT) {
Error Err = Error::success();
std::unique_ptr<Session> S(new Session(std::move(EPC), Err));
// FIXME: Errors destroy the session, leaving the SymbolStringPtrs dangling,
// so just exit here. We could fix this by having errors keep the pool alive.
ExitOnErr(std::move(Err));
if (Err)
return std::move(Err);
return std::move(S);
}