[llvm] r329257 - [llvm-exegesis] Suppress a warning.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 4 22:57:23 PDT 2018
Author: courbet
Date: Wed Apr 4 22:57:23 2018
New Revision: 329257
URL: http://llvm.org/viewvc/llvm-project?rev=329257&view=rev
Log:
[llvm-exegesis] Suppress a warning.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.h
Modified: llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.h?rev=329257&r1=329256&r2=329257&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/InMemoryAssembler.h Wed Apr 4 22:57:23 2018
@@ -23,6 +23,7 @@
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/MC/MCInst.h"
+#include <cstdint>
#include <memory>
#include <vector>
@@ -67,7 +68,7 @@ public:
// Retrieves the callable function.
void operator()() const {
char* const FnData = const_cast<char*>(FunctionBytes.data());
- ((void (*)())FnData)();
+ ((void (*)())(intptr_t)FnData)();
}
private:
More information about the llvm-commits
mailing list