use same format for all call instructions; try to be more robust in doing g

This commit is contained in:
Vitor Santos Costa
2017-08-27 22:03:19 +01:00
parent 8bf607aa65
commit 51b99388e7
13 changed files with 1199 additions and 1274 deletions

View File

@@ -789,9 +789,9 @@ static PredEntry *found_ystop(yamop *pc, int clause_code, void **startp, void **
return pp;
}
if (!pp) {
yamop *o = PREVOP(pc,pp);
yamop *o = PREVOP(pc,Osbpp);
if (o->opc ==Yap_opcode(_execute_cpred)) {
pp = o->y_u.pp.p0;
pp = o->y_u.Osbpp.p0;
} else {
/* must be an index */
PredEntry **pep = (PredEntry **)pc->y_u.l.l;