summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Chisnall <dchisnall@pathscale.com>2011-10-02 01:14:08 +0100
committerDavid Chisnall <dchisnall@pathscale.com>2011-10-02 01:14:08 +0100
commit8518868b24c9acdb15bf46adadc44758066fa7c4 (patch)
tree18265151f16b215ea7a7a1bfe704cbbd137906fd /src
parent534b85dd7f30d09c84db6ea9f2c189fced8b3ec2 (diff)
downloadlibcxxrt-8518868b24c9acdb15bf46adadc44758066fa7c4.tar.gz
libcxxrt-8518868b24c9acdb15bf46adadc44758066fa7c4.tar.bz2
libcxxrt-8518868b24c9acdb15bf46adadc44758066fa7c4.tar.xz
Fix use of __dynamic_cast().
Diffstat (limited to 'src')
-rw-r--r--src/exception.cc4
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());