Index: src/mips64/simulator-mips64.cc |
diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc |
index 200a1bc80b0a4e1be0f585fb58eaa50d8e95ef25..fee93a867abbd4a721719d2eb5268fb2d5a761ae 100644 |
--- a/src/mips64/simulator-mips64.cc |
+++ b/src/mips64/simulator-mips64.cc |
@@ -965,7 +965,7 @@ class Redirection { |
static Redirection* FromSwiInstruction(Instruction* swi_instruction) { |
char* addr_of_swi = reinterpret_cast<char*>(swi_instruction); |
char* addr_of_redirection = |
- addr_of_swi - OFFSET_OF(Redirection, swi_instruction_); |
+ addr_of_swi - offsetof(Redirection, swi_instruction_); |
return reinterpret_cast<Redirection*>(addr_of_redirection); |
} |