It should never be null here, and we want to know if it is. (It can
be set to null in op.c:S_cop_free, but it should always have been set
to something else by the time newGP is called.)
Nevertheless, we should leave the null checks in place, to avoid sabo-
taging non-debugging builds if there are any remaining bugs here.
gp->gp_sv = newSV(0);
#endif
+ /* PL_curcop should never be null here. */
+ assert(PL_curcop);
+ /* But for non-debugging builds play it safe */
if (PL_curcop) {
gp->gp_line = CopLINE(PL_curcop); /* 0 otherwise Newxz */
#ifdef USE_ITHREADS