Skip to content

Commit

Permalink
Merge pull request #2583 from isaacault/copy_to_move
Browse files Browse the repository at this point in the history
 Fix Coverity COPY_INSTEAD_OF_MOVE defects.
  • Loading branch information
isaacault authored Jan 21, 2025
2 parents 64e8089 + a747409 commit 71a5eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/loader/layers/sanitizer/asan/asan_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ struct MemBuffer {

// Sub-buffer constructor
MemBuffer(std::shared_ptr<MemBuffer> Parent, size_t Origin, size_t Size)
: Context(Parent->Context), Size(Size), SubBuffer{{Parent, Origin}} {}
: Context(Parent->Context), Size(Size),
SubBuffer{{std::move(Parent), Origin}} {}

ur_result_t getHandle(ur_device_handle_t Device, char *&Handle);

Expand Down

0 comments on commit 71a5eab

Please sign in to comment.