Skip to content

Conversation

@aviatesk
Copy link
Member

No description provided.

stmt = GotoIfNot(v, stmt.dest)
elseif isa(stmt, EnterNode)
op == 1 || throw(BoundsError())
stmt = EnterNode(stmt.catch_dest, v)
Copy link
Member

Choose a reason for hiding this comment

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

This should be stmt.scope now, right (like _useref_getindex)?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not merged yet (#52309). But we probably should keep this handling.

Copy link
Member

Choose a reason for hiding this comment

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

I think #52309 is good to go, so let me just merge that and then this can be rebased and reviewed on top.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, so I guess no changes are required on this part now. This PR does some minor followups on #52309.

@aviatesk aviatesk changed the title fix up the handling EnterNode of userefs follow up #52309 Dec 13, 2023
istaskstarted(t) && error("Setting scope on a started task directly is disallowed.")
end
return @invoke setproperty!(t::Any, field, v)
return @invoke setproperty!(t::Any, field::Symbol, v::Any)
Copy link
Member Author

Choose a reason for hiding this comment

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

v::Any particularly eliminates unnecessary call to Core.Typeof.

@aviatesk aviatesk merged commit 1524466 into master Dec 13, 2023
@aviatesk aviatesk deleted the avi/ir-fix branch December 13, 2023 08:46
@oscardssmith
Copy link
Member

Can this get a better title/description?

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.

4 participants