do not set PREG until being sure we have to jump

This commit is contained in:
Costa Vitor 2009-06-23 06:50:53 -05:00
parent 2588f5b7c5
commit 246d32551a

View File

@ -8038,9 +8038,9 @@ Yap_absmi(int inp)
setregs();
JMPNext();
}
PREG = pe->cs.p_code.TrueCodeOfPred;
if ((pe->PredFlags & (CountPredFlag|ProfiledPredFlag|SpiedPredFlag)) ==
CountPredFlag) {
PREG = pe->cs.p_code.TrueCodeOfPred;
JMPNext();
}
}