Skip to content

[GNULDBackend] Replace std::move with std::copy in sizeDynNamePools#1318

Open
Saharsh Burra (bsaharsh) wants to merge 1 commit into
qualcomm:mainfrom
bsaharsh:fix/use-std-copy-in-sizeDynNamePools
Open

[GNULDBackend] Replace std::move with std::copy in sizeDynNamePools#1318
Saharsh Burra (bsaharsh) wants to merge 1 commit into
qualcomm:mainfrom
bsaharsh:fix/use-std-copy-in-sizeDynNamePools

Conversation

@bsaharsh

@bsaharsh Saharsh Burra (bsaharsh) commented Jun 23, 2026

Copy link
Copy Markdown

std::move on a range of raw pointers (ResolveInfo *) is identical to std::copy — raw pointers are trivially copyable and moving them does not null the source. Using std::move here is misleading.
Resolves #1301 .

@parth-07

Copy link
Copy Markdown
Contributor

Saharsh Burra (@bsaharsh) Can you please make the clang-format builder happy, and add the 'Resolves #' in both the commit message and the PR description?

std::move on a range of raw pointers (ResolveInfo *) is identical to
std::copy — raw pointers are trivially copyable and moving them does not
null the source. Using std::move here is misleading.

Resolves qualcomm#1301

Signed-off-by: bsaharsh <bsaharsh@qti.qualcomm.com>
@bsaharsh Saharsh Burra (bsaharsh) force-pushed the fix/use-std-copy-in-sizeDynNamePools branch from 8781cb4 to e98567e Compare June 25, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

std::move(...) in GNULDBackend::sizeDynNamePools() is not really moving

2 participants