Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions libcxxabi/test/forced_unwind2.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ struct Stop<R (*)(Args...)> {
};

static void forced_unwind() {
_Unwind_Exception* exc = new _Unwind_Exception;
memset(&exc->exception_class, 0, sizeof(exc->exception_class));
exc->exception_cleanup = 0;
_Unwind_ForcedUnwind(exc, Stop<_Unwind_Stop_Fn>::stop, 0);
static _Unwind_Exception exc = {};
_Unwind_ForcedUnwind(&exc, Stop<_Unwind_Stop_Fn>::stop, 0);
abort();
}

Expand Down
Loading