Remove unnecessarily paranoid protection in pp_defined
Rafael Garcia-Suarez [Tue, 24 Apr 2007 10:34:20 +0000 (10:34 +0000)]
p4raw-id: //depot/perl@31051

pp_hot.c

index dfa19fd..034495d 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -431,12 +431,13 @@ PP(pp_defined)
                --SP;
             RETURNOP(cLOGOP->op_other);
         }
-    } else if (op_type == OP_DEFINED) {
+    }
+    else {
+       /* OP_DEFINED */
         sv = POPs;
         if (!sv || !SvANY(sv))
             RETPUSHNO;
-    } else
-        DIE(aTHX_ "panic:  Invalid op (%s) in pp_defined()", OP_NAME(PL_op));
+    }
 
     defined = FALSE;
     switch (SvTYPE(sv)) {