Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A block with exception handlers should not be inlined; fixes one of t…
…he broken test cases.
  • Loading branch information
jnthn committed Oct 2, 2011
1 parent bd4c869 commit 34c0d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.pm
Expand Up @@ -74,7 +74,7 @@ class Perl6::Optimizer {

# If the block is immediate, we may be able to inline it.
my $outer := @!block_stack[+@!block_stack - 1];
if $block.blocktype eq 'immediate' && !$outer.handlers() {
if $block.blocktype eq 'immediate' && !$block.handlers() && !$outer.handlers() {
# Scan symbols for any non-interesting ones.
# XXX Shouldn't have to care about $/ and $! here...
my @sigsyms;
Expand Down

0 comments on commit 34c0d41

Please sign in to comment.