[all-commits] [llvm/llvm-project] 2627f9: [dfsan] Fix Len argument type in call to __dfsan_m...
Z via All-commits
all-commits at lists.llvm.org
Thu Apr 22 14:13:35 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2627f99613740b8f8a85e150dc0e4c4b6fa6e13f
https://github.com/llvm/llvm-project/commit/2627f99613740b8f8a85e150dc0e4c4b6fa6e13f
Author: Elia Geretto <EliaGeretto>
Date: 2021-04-22 (Thu, 22 Apr 2021)
Changed paths:
M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list