diff options
author | Alon Zakai <azakai@google.com> | 2024-05-17 16:05:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 23:05:58 +0000 |
commit | 4e9f4953a2e5968c402eb2e950252294cfa02460 (patch) | |
tree | 8bb2abf0542fb1041ded4588ed218cfc74a769fe /test/example/c-api-kitchen-sink.c | |
parent | f4a83dd7370021caea7d3b4f97031e206a3ac223 (diff) | |
download | binaryen-4e9f4953a2e5968c402eb2e950252294cfa02460.tar.gz binaryen-4e9f4953a2e5968c402eb2e950252294cfa02460.tar.bz2 binaryen-4e9f4953a2e5968c402eb2e950252294cfa02460.zip |
Fix GlobalRefining's handling of gets in module code and add missing validation (#6603)
GlobalRefining did not traverse module code, so it did not update global.gets
in other globals.
Add missing validation that actually errors on that: We did not check global.get
types.
These could be separate PRs but it would be difficult to test them separately.
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 5fb71b4d6..efd343be9 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -1176,7 +1176,7 @@ void test_core() { makeInt32(module, 0)), BinaryenStringNew(module, BinaryenStringNewWTF16Array(), - BinaryenGlobalGet(module, "i16Array-global", i8Array), + BinaryenGlobalGet(module, "i16Array-global", i16Array), makeInt32(module, 0), makeInt32(module, 0)), BinaryenStringNew( |