From 374398afb784e2e0f027f9a408eb7640198d8558 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Tue, 23 Jul 2019 18:26:53 +0000 Subject: [PATCH] [libFuzzer] Fix __sanitizer_print_memory_profile return type in ExtFunctions.def Summary: Looks like a typo, as that function actually returns void and is used as such in libFuzzer code as well. Reviewers: kcc, Dor1s Reviewed By: Dor1s Subscribers: delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D65160 llvm-svn: 366834 --- compiler-rt/lib/fuzzer/FuzzerExtFunctions.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/fuzzer/FuzzerExtFunctions.def b/compiler-rt/lib/fuzzer/FuzzerExtFunctions.def index 41fa0fd..87df4ec 100644 --- a/compiler-rt/lib/fuzzer/FuzzerExtFunctions.def +++ b/compiler-rt/lib/fuzzer/FuzzerExtFunctions.def @@ -34,7 +34,7 @@ EXT_FUNC(__sanitizer_install_malloc_and_free_hooks, int, void (*free_hook)(const volatile void *)), false); EXT_FUNC(__sanitizer_purge_allocator, void, (), false); -EXT_FUNC(__sanitizer_print_memory_profile, int, (size_t, size_t), false); +EXT_FUNC(__sanitizer_print_memory_profile, void, (size_t, size_t), false); EXT_FUNC(__sanitizer_print_stack_trace, void, (), true); EXT_FUNC(__sanitizer_symbolize_pc, void, (void *, const char *fmt, char *out_buf, size_t out_buf_size), false); -- 2.7.4