diff options
author | Elia Geretto <EliaGeretto> | 2021-04-22 21:05:13 +0000 |
---|---|---|
committer | Jianzhou Zhao <jianzhouzh@google.com> | 2021-04-22 21:12:20 +0000 |
commit | 2627f99613740b8f8a85e150dc0e4c4b6fa6e13f (patch) | |
tree | 4c7b3b280585affe11956ed4e86da77fc6f15cb1 /llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp | |
parent | d5f433d3302eedd455889d581d8312715289b582 (diff) | |
download | llvm-2627f99613740b8f8a85e150dc0e4c4b6fa6e13f.zip llvm-2627f99613740b8f8a85e150dc0e4c4b6fa6e13f.tar.gz llvm-2627f99613740b8f8a85e150dc0e4c4b6fa6e13f.tar.bz2 |
[dfsan] Fix Len argument type in call to __dfsan_mem_transfer_callback
This patch is supposed to solve: https://bugs.llvm.org/show_bug.cgi?id=50075
The function `__dfsan_mem_transfer_callback` takes a `Len` argument of type `i64`; however, when processing a `MemTransferInst` such as `llvm.memcpy.p0i8.p0i8.i32`, the `len` argument has type `i32`. In order to make the type of `len` compatible with the one of the callback argument, this change zero-extends it when necessary.
Reviewed By: stephan.yichao.zhao, gbalats
Differential Revision: https://reviews.llvm.org/D101048
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions