summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-10-13 11:44:03 -0700
committerGitHub <noreply@github.com>2021-10-13 11:44:03 -0700
commit31af332f2a1627ae2bd9232baf5837366a481cfe (patch)
treea5445f2e697034bc2a211b0fe19bf2317fefe107 /src/shell-interface.h
parentcd4e0e8ca447158dcc7c7f95cac2adcc43f99094 (diff)
downloadbinaryen-31af332f2a1627ae2bd9232baf5837366a481cfe.tar.gz
binaryen-31af332f2a1627ae2bd9232baf5837366a481cfe.tar.bz2
binaryen-31af332f2a1627ae2bd9232baf5837366a481cfe.zip
Minor fixes in binary type name emitting (#4239)
Add an assert on not emitting a null name (which would cause a crash a few lines down on trying to read its bytes). I hit that when writing a buggy pass that updated field names. Also fix the case of a type not having a name but some of its fields having names. We can't test that atm since our text format requires types to have names anyhow, so this is a fix for a possible future where we do allow parsing non-named types.
Diffstat (limited to 'src/shell-interface.h')
0 files changed, 0 insertions, 0 deletions