diff options
author | Clement Courbet <courbet@google.com> | 2018-04-05 05:57:23 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-04-05 05:57:23 +0000 |
commit | 2ed9a35b200d28d3a0c86ab8c276a06104f4b9ce (patch) | |
tree | 4f6bac5201f8976f736b441c8ac9d6ad611c1cf8 /llvm | |
parent | 15303dda0d7ba12ed742058476cec1b5957f8132 (diff) | |
download | bcm5719-llvm-2ed9a35b200d28d3a0c86ab8c276a06104f4b9ce.tar.gz bcm5719-llvm-2ed9a35b200d28d3a0c86ab8c276a06104f4b9ce.zip |
[llvm-exegesis] Suppress a warning.
llvm-svn: 329257
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/InMemoryAssembler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.h b/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.h index 11c5df0f477..51b555f5453 100644 --- a/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.h +++ b/llvm/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 <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: |