If ConstEval fails do not log_abort() but return gracefully

This commit is contained in:
Eddie Hung 2019-07-13 04:13:57 -07:00
parent 463f710066
commit 9b91d815b5
1 changed files with 8 additions and 4 deletions

View File

@ -174,8 +174,10 @@ struct ExtractFaWorker
SigSpec sig = root;
if (!ce.eval(sig))
log_abort();
if (ce.eval(sig)) {
ce.pop();
return;
}
if (sig == State::S1)
func |= 1 << i;
@ -214,8 +216,10 @@ struct ExtractFaWorker
SigSpec sig = root;
if (!ce.eval(sig))
log_abort();
if (ce.eval(sig)) {
ce.pop();
return;
}
if (sig == State::S1)
func |= 1 << i;