summaryrefslogtreecommitdiff
path: root/test/ctor-eval/gc-array.wast.ctors
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-11-22 14:21:15 -0800
committerGitHub <noreply@github.com>2024-11-22 14:21:15 -0800
commitad3735ae7def0923c0f04738c6cba3f86634e865 (patch)
treea0066b1a778c9ba31f133d956f9c672cdcb3f4c7 /test/ctor-eval/gc-array.wast.ctors
parent4bf9fca02c8f84c6283a4a9b17eca3f7c0144c5e (diff)
downloadbinaryen-ad3735ae7def0923c0f04738c6cba3f86634e865.tar.gz
binaryen-ad3735ae7def0923c0f04738c6cba3f86634e865.tar.bz2
binaryen-ad3735ae7def0923c0f04738c6cba3f86634e865.zip
Print unreachable loads with valid types (#7108)
Since Load expressions use their `type` field to encode the type of the loaded value, unreachable loads need to come up with some other valid type to print. Previously we always chose i32 as that type, but that's not valid when the load was originally a v128 load with an alignment of 8, since 8 is greater than the maximum valid alignment of 4 for an i32. Fix the problem by taking alignment into account when choosing a type for the unreachable load.
Diffstat (limited to 'test/ctor-eval/gc-array.wast.ctors')
0 files changed, 0 insertions, 0 deletions