File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -547,10 +547,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
547
547
return tstate -> interp -> eval_frame (f , throwflag );
548
548
}
549
549
550
- #ifdef _M_ARM
551
- #pragma optimize ("", off)
552
- #endif // _M_ARM
553
-
554
550
PyObject * _Py_HOT_FUNCTION
555
551
_PyEval_EvalFrameDefault (PyFrameObject * f , int throwflag )
556
552
{
@@ -1629,6 +1625,14 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
1629
1625
exc = POP (); /* exc */
1630
1626
/* fall through */
1631
1627
case 0 :
1628
+ #ifdef _M_ARM
1629
+ // work around optimizer problem on windows arm32
1630
+ if (oparg == 2 )
1631
+ {
1632
+ exc = stack_pointer [0 ];
1633
+ cause = stack_pointer [1 ];
1634
+ }
1635
+ #endif
1632
1636
if (do_raise (exc , cause )) {
1633
1637
why = WHY_EXCEPTION ;
1634
1638
goto fast_block_end ;
@@ -3504,10 +3508,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
3504
3508
return _Py_CheckFunctionResult (NULL , retval , "PyEval_EvalFrameEx" );
3505
3509
}
3506
3510
3507
- #ifdef _M_ARM
3508
- #pragma optimize ("", on)
3509
- #endif // _M_ARM
3510
-
3511
3511
static void
3512
3512
format_missing (const char * kind , PyCodeObject * co , PyObject * names )
3513
3513
{
You can’t perform that action at this time.
0 commit comments