clang support

This commit is contained in:
MerryMage 2016-07-12 14:31:43 +01:00
parent 8449deb0bc
commit 619b451902
6 changed files with 5 additions and 6 deletions

View file

@ -57,7 +57,7 @@ private:
}
};
Jit::Jit(UserCallbacks callbacks) : callbacks(callbacks), impl(std::make_unique<Impl>(this, callbacks)) {}
Jit::Jit(UserCallbacks callbacks) : impl(std::make_unique<Impl>(this, callbacks)) {}
Jit::~Jit() {}

View file

@ -35,7 +35,7 @@ CodePtr Routines::RunCodeReturnAddress() const {
}
void Routines::GenRunCode() {
run_code = reinterpret_cast<RunCodeFuncType>(this->GetCodePtr());
run_code = reinterpret_cast<RunCodeFuncType>(const_cast<u8*>(this->GetCodePtr()));
// This serves two purposes:
// 1. It saves all the registers we as a callee need to save.