[ORC] Make LLJIT's destructor virtual.

This allows LLLazyJIT instances to be safely owned by unique_ptr<LLJIT>s.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D119064
This commit is contained in:
Lang Hames 2022-02-09 13:02:48 +11:00
parent 27e0c6670a
commit 9b25d868f4
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public:
/// Destruct this instance. If a multi-threaded instance, waits for all
/// compile threads to complete.
~LLJIT();
virtual ~LLJIT();
/// Returns the ExecutionSession for this instance.
ExecutionSession &getExecutionSession() { return *ES; }