Skip to content

C++23: Use std::unreachable() instead of assert(false)#1075

Merged
elazarg merged 2 commits intomainfrom
unreachable
Apr 15, 2026
Merged

C++23: Use std::unreachable() instead of assert(false)#1075
elazarg merged 2 commits intomainfrom
unreachable

Conversation

@elazarg
Copy link
Copy Markdown
Collaborator

@elazarg elazarg commented Apr 15, 2026

Part of #1027.

Also use [[falltrhough]] for switch statements.

Signed-off-by: Elazar Gershuni <elazarg@gmail.com>
@vbpf vbpf deleted a comment from coderabbitai bot Apr 15, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bca5cc29b1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ir/marshal.cpp Outdated
Signed-off-by: Elazar Gershuni <elazarg@gmail.com>
@vbpf vbpf deleted a comment from coderabbitai bot Apr 15, 2026
@elazarg elazarg merged commit ac03ef6 into main Apr 15, 2026
16 checks passed
@elazarg elazarg deleted the unreachable branch April 15, 2026 12:41
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