Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][ClangLinkerWrapper] Fix read of invalid memory (#15472)
The problem was the buffer gets freed when we go out of the `if` because the `unique_ptr` is created there, so just make a copy that will stay alive as long as we need it. Confirmed fix with valgrind. This is already tested by `sycl/test-e2e/NewOffloadDriver/multisource.cpp` and it fails sporadically which led me to this fix. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
- Loading branch information