forked from OSchip/llvm-project
parent
15303dda0d
commit
2ed9a35b20
|
@ -23,6 +23,7 @@
|
||||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
||||||
#include "llvm/IR/LLVMContext.h"
|
#include "llvm/IR/LLVMContext.h"
|
||||||
#include "llvm/MC/MCInst.h"
|
#include "llvm/MC/MCInst.h"
|
||||||
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -67,7 +68,7 @@ public:
|
||||||
// Retrieves the callable function.
|
// Retrieves the callable function.
|
||||||
void operator()() const {
|
void operator()() const {
|
||||||
char* const FnData = const_cast<char*>(FunctionBytes.data());
|
char* const FnData = const_cast<char*>(FunctionBytes.data());
|
||||||
((void (*)())FnData)();
|
((void (*)())(intptr_t)FnData)();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue