Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sema: ensure result of block_comptime is comptime-known #22305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented Dec 24, 2024

Also, simplify the handling of this instruction; it was previously going through a completely unnecessary runtime path. Who would write such ridiculous code?! (It was me, I wrote it)

Resolves: #22296

Also, simplify the handling of this instruction; it was previously going
through a completely unnecessary runtime path. Who would write such
ridiculous code?! (It was me, I wrote it)

Resolves: ziglang#22296
@mlugg
Copy link
Member Author

mlugg commented Dec 24, 2024

Ahh, I remember why I didn't do this already, it makes a bunch of error messages worse!

I'll look into solving this properly by embedding a "comptime reason" into ZIR.

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.

No error on comptime expression loading runtime value
1 participant