Describe the bug
CID 549836: (#1 of 1): Using a moved object (USE_AFTER_MOVE)
5. return_with_moved_parameter: Returning while reference parameter DepEvents is in a moved state.
|
ResultEvent->getPreparedDepsEvents() = std::move(DepEvents); |
I guess we should not use move OR pass DepEvent by-value:
|
KernelData &KData, std::vector<detail::EventImplPtr> &DepEvents, |
To reproduce
- Include a code snippet that is as short as possible
- Specify the command which should be used to compile the program
- Specify the command which should be used to launch the program
- Indicate what is wrong and what was expected
Environment
- OS: [e.g Windows/Linux]
- Target device and vendor: [e.g. Intel GPU]
- DPC++ version: [e.g. commit hash or output of
clang++ --version]
- Dependencies version: [e.g. the output of
sycl-ls --verbose]
Additional context
No response
Describe the bug
llvm/sycl/source/detail/queue_impl.cpp
Line 473 in 6489caa
I guess we should not use move OR pass DepEvent by-value:
llvm/sycl/source/detail/queue_impl.cpp
Line 401 in 6489caa
To reproduce
Environment
clang++ --version]sycl-ls --verbose]Additional context
No response