mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 17:00:52 +02:00
Found this through introspection, only a real problem with -O0. We were moving a fextl::vector in to a shared pointer so it can be long living, this causes a change in ownership which was causing the `BlobData` pointer to be stale. This was then passed to the work queue to be consumed. In -O1 and above a std::move of a fextl::vector is a proper move, but -O0 it turns in to a copy. Easy fix is to just create the shared_ptr early and reference that, so the pointer is long lived and no references become stale.