diff options
author | David Chisnall <dchisnall@pathscale.com> | 2011-10-02 01:14:08 +0100 |
---|---|---|
committer | David Chisnall <dchisnall@pathscale.com> | 2011-10-02 01:14:08 +0100 |
commit | 8518868b24c9acdb15bf46adadc44758066fa7c4 (patch) | |
tree | 18265151f16b215ea7a7a1bfe704cbbd137906fd | |
parent | 534b85dd7f30d09c84db6ea9f2c189fced8b3ec2 (diff) | |
download | libcxxrt-8518868b24c9acdb15bf46adadc44758066fa7c4.tar.gz libcxxrt-8518868b24c9acdb15bf46adadc44758066fa7c4.tar.bz2 libcxxrt-8518868b24c9acdb15bf46adadc44758066fa7c4.tar.xz |
Fix use of __dynamic_cast().
-rw-r--r-- | src/exception.cc | 4 |
1 files 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()); |