From af30cac9f99f9dd4bb23ec0eef20572bd05f653a Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Thu, 5 Apr 2018 05:57:23 +0000 Subject: [PATCH] [llvm-exegesis] Suppress a warning. llvm-svn: 329257 --- tools/llvm-exegesis/lib/InMemoryAssembler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/lib/InMemoryAssembler.h b/tools/llvm-exegesis/lib/InMemoryAssembler.h index 11c5df0f477..51b555f5453 100644 --- a/tools/llvm-exegesis/lib/InMemoryAssembler.h +++ b/tools/llvm-exegesis/lib/InMemoryAssembler.h @@ -23,6 +23,7 @@ #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/IR/LLVMContext.h" #include "llvm/MC/MCInst.h" +#include #include #include @@ -67,7 +68,7 @@ public: // Retrieves the callable function. void operator()() const { char* const FnData = const_cast(FunctionBytes.data()); - ((void (*)())FnData)(); + ((void (*)())(intptr_t)FnData)(); } private: