diff options
author | Thomas Lively <tlively@google.com> | 2024-07-16 13:50:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 10:50:50 -0700 |
commit | afef6d353c4283798b82e6cd4a6969fdfdc7cf7c (patch) | |
tree | 2e884eca92e842501fb6d3ed72a53a48e80cf0df /src | |
parent | 0964a6adabc6428f8b188ed7d8949c801adedf33 (diff) | |
download | binaryen-afef6d353c4283798b82e6cd4a6969fdfdc7cf7c.tar.gz binaryen-afef6d353c4283798b82e6cd4a6969fdfdc7cf7c.tar.bz2 binaryen-afef6d353c4283798b82e6cd4a6969fdfdc7cf7c.zip |
Remove extra space printed in empty structs (#6750)
When we switched to the new type printing machinery, we inserted this
extra space to minimize the diff in the test output compared with the
previous type printer. Improve the quality of the printed output by
removing it.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-type.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index 6328180f8..adb2c7fa8 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -2109,10 +2109,6 @@ TypePrinter::print(const Struct& struct_, print(struct_.fields[i]); os << ')'; } - // TODO: Remove this extra space kept to minimize test diffs. - if (struct_.fields.size() == 0) { - os << ' '; - } return os << ")"; } |