Ticket #1538: cc-patch.diff

File cc-patch.diff, 0.8 KB (added by arnsholt, 5 years ago)
  • src/pmc/continuation.pmc

     
    248248                PMC *raw_sig, *invalid_sig; 
    249249                Parrot_pcc_parse_signature_string(INTERP, string_sig, &raw_sig, &invalid_sig); 
    250250 
     251                /* Attempting to call an uninitialised Continuation */ 
     252                if(!pc) 
     253                    Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_INVALID_OPERATION, 
     254                            "Continuation: Attempting to invoke an uninitialised exception!"); 
     255 
    251256                /* Build results signature for continuation */ 
    252257                if (*pc == PARROT_OP_get_results_pc) 
    253258                    call_obj = Parrot_pcc_build_sig_object_returns_from_op(INTERP, call_obj,