Skip to content

Commit ef987bb

Browse files
committed
arm-xplat: fix _get_va [ip + fp]
1 parent fc95140 commit ef987bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Runtime/Language/Arguments.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ inline Js::Var* _get_va(void* addrOfReturnAddress, int n)
2828
{
2929
// All args are right after ReturnAddress by custom calling convention
3030
Js::Var* pArgs = reinterpret_cast<Js::Var*>(addrOfReturnAddress) + 1;
31+
#ifdef _ARM_
32+
n += 2; // ip + fp
33+
#endif
3134
return pArgs + n;
3235
}
3336

0 commit comments

Comments
 (0)