Fix code triggering new -Wmicrosoft-cast warning in M67

This commit is contained in:
Jeremy Apthorp 2018-07-31 14:39:31 -07:00 committed by Aleksei Kuzmin
parent 5b25c2db5d
commit 9a296fc63e

View file

@ -112,7 +112,8 @@ bool RegisterNonABICompliantCodeRange(void* start, size_t size_in_bytes) {
// mov imm64, rax
record->thunk[0] = 0x48;
record->thunk[1] = 0xb8;
void* handler = &CrashForExceptionInNonABICompliantCodeRange;
void* handler =
reinterpret_cast<void*>(&CrashForExceptionInNonABICompliantCodeRange);
memcpy(&record->thunk[2], &handler, 8);
// jmp rax