This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bac4ce
)
Call finalize_optree on optree generated by newFORM.
author
Gerard Goossen
<gerard@ggoossen.net>
Sun, 31 Jul 2011 11:46:34 +0000
(13:46 +0200)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 31 Jul 2011 20:34:53 +0000
(13:34 -0700)
finalize_optree should be called on all optrees, thus also on optrees
generated by newFORM.
I don't really understand why this doesn't cause any problems.
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
915dd78
..
68aa1a7
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-6998,6
+6998,7
@@
Perl_newFORM(pTHX_ I32 floor, OP *o, OP *block)
CvSTART(cv) = LINKLIST(CvROOT(cv));
CvROOT(cv)->op_next = 0;
CALL_PEEP(CvSTART(cv));
+ finalize_optree(CvROOT(cv));
#ifdef PERL_MAD
op_getmad(o,pegop,'n');
op_getmad_weak(block, pegop, 'b');