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

InternPool: eliminate var_args_param_type #19835

Merged
merged 1 commit into from May 4, 2024

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented May 2, 2024

This was a "fake" type used to handle C varargs parameters, much like generic poison. In fact, it is treated identically to generic poison in all cases other than one (the final coercion of a call argument), which is trivially special-cased. Thus, it makes sense to remove this special tag and instead use generic_poison_type in its place. This fixes several bugs in Sema related to missing handling of this tag.

Resolves: #19781

This was a "fake" type used to handle C varargs parameters, much like
generic poison. In fact, it is treated identically to generic poison in
all cases other than one (the final coercion of a call argument), which
is trivially special-cased. Thus, it makes sense to remove this special
tag and instead use `generic_poison_type` in its place. This fixes
several bugs in Sema related to missing handling of this tag.

Resolves: ziglang#19781
@mlugg mlugg enabled auto-merge (rebase) May 4, 2024 19:06
@mlugg mlugg merged commit db890db into ziglang:master May 4, 2024
10 checks passed
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.

missing constCast in c fn call cause compiler error without any tips and notes
1 participant