diff options
author | Paulo Matos <pmatos@igalia.com> | 2021-10-06 10:08:04 +0200 |
---|---|---|
committer | Paulo Matos <pmatos@igalia.com> | 2021-10-06 10:11:53 +0200 |
commit | 0c7495848a02e1bcc68527c77c2a060ffae408c1 (patch) | |
tree | 8714b581a96cf5cd16503ad072684363bc46f5a3 /llvm/lib/Support/ErrorHandling.cpp | |
parent | 91fe069c35f13647687f4e4af2c838c61331c450 (diff) | |
download | llvm-0c7495848a02e1bcc68527c77c2a060ffae408c1.zip llvm-0c7495848a02e1bcc68527c77c2a060ffae408c1.tar.gz llvm-0c7495848a02e1bcc68527c77c2a060ffae408c1.tar.bz2 |
[WebAssembly] Fix call_indirect on funcrefs
The currently implementation of funcrefs is broken since it is putting
the funcref itself on the stack before the call_indirect. Instead what
should be on the stack is the constant 0, which is the index at which
we store the funcref in __funcref_call_table.
Reviewed By: tlively
Differential Revision: https://reviews.llvm.org/D111152
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions