summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
committerpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
commit31eb748944903b7f4f38afda9851951ca9dfc1ae (patch)
tree9b95b6ea45d0874d75eb05b90c0840e191416439 /gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
parentDon't try to handle IPv4-compatible IPv6 addresses (diff)
downloadwireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.tar.xz
wireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.zip
Import LLVM 5.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp b/gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
index 7b02b6f0b70..503f0395cf8 100644
--- a/gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
+++ b/gnu/llvm/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
@@ -41,7 +41,8 @@ namespace fuzzer {
ExternalFunctions::ExternalFunctions() {
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) \
this->NAME = ::NAME; \
- CheckFnPtr((void *)::NAME, #NAME, WARN);
+ CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)), \
+ #NAME, WARN);
#include "FuzzerExtFunctions.def"