Skip to content

fix(slang-sys): drop redundant std::move on const session refs - #348

Merged
hongjr03 merged 1 commit into
masterfrom
fix/slang-sys-redundant-move
Sep 7, 2026
Merged

hongjr03 merged 1 commit into
masterfrom
fix/slang-sys-redundant-move

Conversation

@hongjr03

@hongjr03 hongjr03 commented Sep 7, 2026

Copy link
Copy Markdown
Member

wrap_syntax_tree takes SourceSession by value. The parse helpers hold session as const shared_ptr&, so std::move cannot actually move and GCC -Wredundant-move fires at four wrap_syntax_tree call sites.

wrap_syntax_tree takes SourceSession by value. The parse helpers hold
session as const shared_ptr&, so std::move cannot actually move and
GCC -Wredundant-move fires at four wrap_syntax_tree call sites.
@hongjr03
hongjr03 merged commit 1a3431d into master Sep 7, 2026
9 of 10 checks passed
@hongjr03
hongjr03 deleted the fix/slang-sys-redundant-move branch September 7, 2026 09:30
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.

1 participant