diff options
author | Ben Smith <binjimin@gmail.com> | 2018-06-05 00:26:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 00:26:11 -0700 |
commit | 909d44aa725dd8f2f8822c5eb62962f37dbc995e (patch) | |
tree | e915944b10117a6697a0a13f646197655c5ffbb7 /src/binary-reader-logging.cc | |
parent | 29281771e9cd3896d8ee83c960b87d0d5bd3436d (diff) | |
download | wabt-909d44aa725dd8f2f8822c5eb62962f37dbc995e.tar.gz wabt-909d44aa725dd8f2f8822c5eb62962f37dbc995e.tar.bz2 wabt-909d44aa725dd8f2f8822c5eb62962f37dbc995e.zip |
Better type-check errors locs @ end of block (#856)
Some type-checking only occurs at the end of a block, but the location
that is generated uses the last expression of that block. This can be
confusing if there are nested blocks, e.g.
```
1 block (result i32)
2 block
3 nop
4 end
5 end
```
This should produce an error at line 5, not line 3.
This PR stores the locations of the end of a block (either the `end` or
the closing parenthesis) so its easier to understand where the error
occurred.
Diffstat (limited to 'src/binary-reader-logging.cc')
0 files changed, 0 insertions, 0 deletions