diff options
author | Thomas Lively <tlively@google.com> | 2023-08-21 11:45:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 11:45:24 -0700 |
commit | 4672c533985e8f2c9a88dec616aa3d9b95deb63e (patch) | |
tree | 2a78580977dec80e3f56b54debc67b48e064aa28 /test/lit/help/wasm-split.test | |
parent | b41ec7cb488481e5b1a57fc7203e9c0bc7331bbd (diff) | |
download | binaryen-4672c533985e8f2c9a88dec616aa3d9b95deb63e.tar.gz binaryen-4672c533985e8f2c9a88dec616aa3d9b95deb63e.tar.bz2 binaryen-4672c533985e8f2c9a88dec616aa3d9b95deb63e.zip |
Fix finalization of call_ref to handle refined target types (#5883)
Previously CallRef::finalize() would never update the type of the CallRef, even
if the type of the call target had been refined to give a more precise result
type. Besides unnecessarily losing type information, this could also lead to
validation errors, since the validator checks that the type of CallRef matches
the result type of the target signature.
Fix the bug by updating CallRef's type based on its target signature in
CallRef::finalize() and add a test that depends on this refinalization.
Diffstat (limited to 'test/lit/help/wasm-split.test')
0 files changed, 0 insertions, 0 deletions