Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 54c6a71ceb24997e057154c52c73813f0631d938..1148a7cff6fcd892ace46d608c3d4bf940f30087 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -1035,7 +1035,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); |
} |