diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-29 15:46:30 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-29 15:46:30 +0900 |
| commit | 60aa2192a8afc7a2f58196f1667f254832ca8c25 (patch) | |
| tree | eba7e2fd63c23edc7d61507e830811814a238d58 /mrbgems/mruby-compiler/core/codegen.c | |
| parent | 8aa15b0096b61c14710e396c072233b95331abd5 (diff) | |
| download | mruby-60aa2192a8afc7a2f58196f1667f254832ca8c25.tar.gz mruby-60aa2192a8afc7a2f58196f1667f254832ca8c25.zip | |
codegen.c: just raise the exception on broken node for assignments.
Diffstat (limited to 'mrbgems/mruby-compiler/core/codegen.c')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 12f7c3b3f..d271ca638 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -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(); |
