llvm
eaf83b48 - [SYCL][NFC] Use unique_ptr for storing ModuleDesc. (#20358)

Commit
173 days ago
[SYCL][NFC] Use unique_ptr for storing ModuleDesc. (#20358) This patch resolves a warning about expensive copy in function invocation which accepts ModuleDesc by value, thus taking ownership of ModuleDesc. Now ownership is transferred into functions by using unuqie_ptr. Also, the patch removes many usages of r-value references in function's arguments because r-value reference supposes a ownership transfer but does not oblige that.
Author
Parents
Loading