File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -923,9 +923,6 @@ Method::get_outputs(EValue* output_evalues, size_t length) {
923
923
}
924
924
925
925
Error Method::execute_instruction () {
926
- // TODO(jakeszwe): remove all the ET_CHECKS in this function and properly
927
- // return the error instead
928
-
929
926
auto & chain = chains_[step_state_.chain_idx ];
930
927
auto instructions = chain.s_chain_ ->instructions ();
931
928
@@ -1040,10 +1037,11 @@ Error Method::execute_instruction() {
1040
1037
internal::reset_data_ptr (t);
1041
1038
} break ;
1042
1039
default :
1043
- ET_CHECK_MSG (
1044
- false ,
1045
- " Instruction is not supported. %hhu" ,
1040
+ ET_LOG (
1041
+ Error ,
1042
+ " Unknown instruction: %hhu" ,
1046
1043
static_cast <uint8_t >(instruction->instr_args_type ()));
1044
+ err = Error::InvalidProgram;
1047
1045
}
1048
1046
// Reset the temp allocator for every instruction.
1049
1047
if (memory_manager_->temp_allocator () != nullptr ) {
You can’t perform that action at this time.
0 commit comments