jit: fix assertion in GDBJITRegistrationListener

This commit is contained in:
unknown 2023-05-15 01:12:14 +02:00 committed by Ivan
parent e2bced978e
commit 37bc73865d

View File

@ -1505,7 +1505,7 @@ void jit_compiler::add(const std::string& path)
if (auto object_file = llvm::object::ObjectFile::createObjectFile(*cache))
{
m_engine->addObjectFile( std::move(*object_file) );
m_engine->addObjectFile(llvm::object::OwningBinary<llvm::object::ObjectFile>(std::move(*object_file), std::move(cache)));
}
else
{