Skip to content

Support sentinel in @Type #3814

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

Closed
wants to merge 1 commit into from

Conversation

marler8997
Copy link
Contributor

@marler8997 marler8997 commented Dec 1, 2019

Related issue: #3816

@marler8997 marler8997 force-pushed the sentinelInType branch 5 times, most recently from 26bbdd9 to 7d85c14 Compare December 1, 2019 21:14
src/ir.cpp Outdated
static Error get_const_field_sentinel(IrAnalyze *ira, IrInstruction *source_instr, ZigValue *struct_value,
const char *name, size_t field_index, ZigType *elem_type, ZigValue **result)
static Error get_const_field_sentinel(IrAnalyze *ira, ZigValue *struct_value, const char *name, size_t field_index,
IrInstruction *source_instr, ZigType *elem_type, ZigValue **result)
{
ZigValue *field_val = get_const_field(ira, struct_value, name, field_index);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function is not correct, going to wait for #3787 which has the fix.

@marler8997
Copy link
Contributor Author

I think the problem I was trying to fix with this was fixed by @LemonBoy here: #3855

@marler8997 marler8997 closed this Dec 7, 2019
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.

2 participants