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

fix over-eager removal of newvar nodes in the presence of isdefined #23384

Merged
merged 1 commit into from
Aug 22, 2017

Conversation

JeffBezanson
Copy link
Member

Bug noticed in #23260 (comment)

@JeffBezanson JeffBezanson added bugfix This change fixes an existing bug compiler:lowering Syntax lowering (compiler front end, 2nd stage) labels Aug 21, 2017
test/core.jl Outdated
let a = []
for i = 1:2
push!(a, @isdefined(j))
j = 1
Copy link
Member

Choose a reason for hiding this comment

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

possibly should mark this local j, so that it's clear what this is testing, and to make sure the insertion of another earlier test (or other random global state) doesn't invalidate this test

Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

looks correct to me

@JeffBezanson JeffBezanson merged commit b583df7 into master Aug 22, 2017
@JeffBezanson JeffBezanson deleted the jb/isdefined_loop branch August 22, 2017 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:lowering Syntax lowering (compiler front end, 2nd stage)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants