Landing: 89cb8a767dc5
Project / Subsystem
gcc / analyzer
Date
2026-09-06
Author
linden
Commit
89cb8a767dc507e10fe7b86a245109f0052aa9fa
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- analyzer
- patch_id
- —
- commit_hash
- 89cb8a767dc507e10fe7b86a245109f0052aa9fa
- source_type
- github
- headline
- analyzer: add missing std::move for by-value sinks
- tldr
- Fixes GCC analyzer to correctly move values into sinks, avoiding unnecessary copies.
- author
- linden
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • analyzer
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-06T00:00:00.000Z
The GCC analyzer incorrectly copied values into by-value parameters and rvalue-reference constructor parameters where a move was intended. This commit adds std::move in three specific instances within the analyzer’s infinite loop detection and HTML sink reporting, ensuring that resources are moved efficiently instead of being copied.