Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index 1dd0e2021bda4d450acd5c64b0f2aca7de898fee..3a02ee00948ece034a09193f20a97d2ce05270f8 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -823,7 +823,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); |
} |