From 8518868b24c9acdb15bf46adadc44758066fa7c4 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sun, 2 Oct 2011 01:14:08 +0100 Subject: Fix use of __dynamic_cast(). --- src/exception.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exception.cc b/src/exception.cc index 3ebba99..66e0929 100644 --- a/src/exception.cc +++ b/src/exception.cc @@ -533,8 +533,8 @@ static void report_failure(_Unwind_Reason_Code err, __cxa_exception *thrown_exce if (throw_ti) { std::exception *e = - (std::exception*)__dynamic_cast((void*)(thrown_exception+1), - e_ti, throw_ti, -1); + (std::exception*)e_ti->cast_to((void*)(thrown_exception+1), + throw_ti); if (e) { fprintf(stderr, " '%s'", e->what()); -- cgit v1.2.3