Skip to content

555642 Using a moved object in queue_impl.cpp #21917

@KornevNikita

Description

@KornevNikita

Describe the bug

2. move: this->KData is moved (indicated by std::move(this->KData)).
CID 555642: (#1 of 1): Using a moved object (USE_AFTER_MOVE)
3. use_after_move: this->KData is used after it has been already moved.

CommandGroup.reset(new detail::CGExecKernel(
KData.getNDRDesc(), std::move(HostKernelPtr),
nullptr, // Kernel
nullptr, // KernelBundle
std::move(CGData), std::move(KData).getArgs(),
*KData.getDeviceKernelInfoPtr(), std::move(StreamStorage),
std::move(AuxiliaryResources), detail::CGType::Kernel,
KData.getKernelCacheConfig(), KData.isCooperative(),
KData.usesClusterLaunch(), KData.getKernelWorkGroupMemorySize(),
CodeLoc));
CommandGroup->MIsTopCodeLoc = IsTopCodeLoc;

To reproduce

  1. Include a code snippet that is as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions