[llvm-jitlink] Fix a FIXME.
ORC errors preserve the SymbolStringPool since 6fe2e9a9cc
, so we can stop
bailing out early.
This commit is contained in:
parent
657e1e316b
commit
d908118b8a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue