This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5db.t: add the DebugWrap class
[perl5.git] / doop.c
diff --git a/doop.c b/doop.c
index 231b3d8..f130477 100644 (file)
--- a/doop.c
+++ b/doop.c
@@ -1014,7 +1014,7 @@ Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
 
     PERL_ARGS_ASSERT_DO_VOP;
 
-    if (sv != left || (optype != OP_BIT_AND && !SvOK(sv) && !SvGMAGICAL(sv)))
+    if (sv != left || (optype != OP_BIT_AND && !SvOK(sv)))
        sv_setpvs(sv, "");      /* avoid undef warning on |= and ^= */
     if (sv == left) {
        lsave = lc = SvPV_force_nomg(left, leftlen);