In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/6dfc73ea459d59204dc98d8ed6c7dddf96b40d2a?hp=63b18b66377a1ebc1d21497ab42e235df8f92996>

- Log -----------------------------------------------------------------
commit 6dfc73ea459d59204dc98d8ed6c7dddf96b40d2a
Author: Steffen Mueller <[email protected]>
Date:   Wed Apr 8 22:31:41 2015 +0200

    Revert "pp_helem: Remove branch seemingly untaken (v2)"
    
    This reverts commit d9dc8e0c5019810bfa3840ecadb302a2f01e01ae because it
    breaks autovivification.pm. Vincent writes in a mail to p5p:
    
      > This is a friendly notification that this change, while
      > being correct as far as I can tell, has broken
      > autovivification.pm (the CPAN module) quite heavily.
      [...]
      > fixing the module to make it work with blead will probably
      > require a complete rewrite
    
    So clearly, this change isn't worth having.
-----------------------------------------------------------------------

Summary of changes:
 pp_hot.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pp_hot.c b/pp_hot.c
index 67b78f3..3165bca 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1789,7 +1789,8 @@ PP(pp_helem)
     const bool localizing = PL_op->op_private & OPpLVAL_INTRO;
     bool preeminent = TRUE;
 
-    assert(SvTYPE(hv) == SVt_PVHV);
+    if (SvTYPE(hv) != SVt_PVHV)
+       RETPUSHUNDEF;
 
     if (localizing) {
        MAGIC *mg;

--
Perl5 Master Repository

Reply via email to