Mercurial > projects > ldc
diff runtime/internal/eh.d @ 1597:761bf823e59e
Fix definition of _Unwind_Action.
Thanks to Garrison.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 18 Dec 2009 18:59:14 +0100 |
parents | f4c56ed32238 |
children |
line wrap: on
line diff
--- a/runtime/internal/eh.d Sun Nov 15 13:22:02 2009 +0000 +++ b/runtime/internal/eh.d Fri Dec 18 18:59:14 2009 +0100 @@ -54,8 +54,8 @@ { SEARCH_PHASE = 1, CLEANUP_PHASE = 2, - HANDLER_PHASE = 3, - FORCE_UNWIND = 4 + HANDLER_FRAME = 4, + FORCE_UNWIND = 8 } alias void* _Unwind_Context_Ptr; @@ -350,7 +350,7 @@ if(actions & _Unwind_Action.SEARCH_PHASE) return _Unwind_Reason_Code.HANDLER_FOUND; - else if(actions & _Unwind_Action.HANDLER_PHASE) + else if(actions & _Unwind_Action.CLEANUP_PHASE) { debug(EH_personality) printf("Setting switch value to: %d!\n", switchval); _Unwind_SetGR(context, eh_exception_regno, cast(ptrdiff_t)cast(void*)(exception_struct.exception_object));