codegen.c: just raise the exception on broken node for assignments.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-05-29 15:46:30 +09:00
parent 8aa15b0096
commit 60aa2192a8
+1 -3
View File
@@ -1320,9 +1320,7 @@ gen_assignment(codegen_scope *s, node *tree, int sp, int val)
break;
default:
#ifndef MRB_NO_STDIO
fprintf(stderr, "unknown lhs %d\n", type);
#endif
codegen_error(s, "unknown lhs");
break;
}
if (val) push();