summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2020-04-27 21:53:43 +0100
committerDavid Mitchell <davem@iabyn.com>2020-04-27 21:53:43 +0100
commit2abf7efcc0ff8978340af661cb333175a899a84e (patch)
tree6874a50b9a3c4ef7d2b6807cf50409f4ba7532cb /op.c
parentc6b2e294d8420e0bf8a959617e087a086a43abc8 (diff)
downloadperl-2abf7efcc0ff8978340af661cb333175a899a84e.tar.gz
Revert "fixup to "avoid identical stack traces" - try 2"
This reverts commit ad89278aa25475fb03971aec66692e18e35d9c07.
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/op.c b/op.c
index e810d466a8..cd2dc44229 100644
--- a/op.c
+++ b/op.c
@@ -11739,9 +11739,10 @@ S_process_special_blocks(pTHX_ I32 floor, const char *const fullname,
* to PL_compiling, IN_PERL_COMPILETIME/IN_PERL_RUNTIME
* will give the wrong answer.
*/
- PL_curcop = (COP*)newSTATEOP(PL_compiling.op_flags, NULL, NULL);
- CopLINE_set(PL_curcop, CopLINE(&PL_compiling));
- SAVEFREEOP(PL_curcop);
+ Newx(PL_curcop, 1, COP);
+ StructCopy(&PL_compiling, PL_curcop, COP);
+ PL_curcop->op_slabbed = 0;
+ SAVEFREEPV(PL_curcop);
}
PUSHSTACKi(PERLSI_REQUIRE);