Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide optimized form of assigning Nil
So that the spesh plugin can return that, instead of falling back on the fully general case that cannot be inlined.
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c7056f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jnthn
This commit broke a test in DBIish.
Coincidentally I was removing a 'diag' in it and travis CI detect the problem.
Reverting my build to the previous one (e5d2933) the test succeeds.
The path broken seem to be https://github.com/perl6/DBIish/blob/master/lib/DBDish/ErrorHandling.pm6#L26
c7056f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The case golfed:
vs
Seems that with your commit, the second assignment to
$!e
, (after setting to Nil) isn't preserved.c7056f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salortiz Excellent golf (and will make a nice spectest!) I suspect a missing guard; I'll look at it in the morning. :)