diff options
author | Steve Hay <SteveHay@planit.com> | 2007-07-11 09:00:49 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2007-07-11 09:00:49 +0000 |
commit | 58d3fd3b5888ac8ea3febee0b12943d3043ede14 (patch) | |
tree | 0472ffb2c52e4ac7765f93c6b08dcac198f8c472 /pp_ctl.c | |
parent | 6d9d0573815dfef636f241310976fb6ba3c5d267 (diff) | |
download | perl-58d3fd3b5888ac8ea3febee0b12943d3043ede14.tar.gz |
Use Perl_croak() rather than DIE() in S_doeval() because "DIE()"
becomes "return Perl_die()" and Perl_die() returns an OP*, which
isn't appropriate to return from S_doeval.
p4raw-id: //depot/perl@31586
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2950,8 +2950,8 @@ S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq) const SV * const nsv = cx->blk_eval.old_namesv; (void)hv_store(GvHVn(PL_incgv), SvPVX_const(nsv), SvCUR(nsv), &PL_sv_undef, 0); - DIE(aTHX_ "%sCompilation failed in require", - *msg ? msg : "Unknown error\n"); + Perl_croak(aTHX_ "%sCompilation failed in require", + *msg ? msg : "Unknown error\n"); } else if (startop) { POPBLOCK(cx,PL_curpm); |