summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chisnall <dchisnall@pathscale.com>2013-02-07 11:08:58 +0000
committerDavid Chisnall <dchisnall@pathscale.com>2013-02-07 11:08:58 +0000
commitdab8a0012017b46aeab061c8991632612b395aae (patch)
tree4b3fa85144f92399cd834d87fee3a5d9905caad8
parentc4b68a5c1836b9027fe8784fec25b7a2e6e6aa60 (diff)
downloadlibcxxrt-master.tar.gz
libcxxrt-master.tar.bz2
libcxxrt-master.tar.xz
Fix a copy-and-paste error when setting the unexpected exception handlerHEADmaster
(actually set the terminate handler by mistake).
-rw-r--r--src/exception.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exception.cc b/src/exception.cc
index 4ccf38e..7f0d3e8 100644
--- a/src/exception.cc
+++ b/src/exception.cc
@@ -1387,7 +1387,7 @@ namespace std
{
if (thread_local_handlers) { return pathscale::set_unexpected(f); }
- return ATOMIC_SWAP(&terminateHandler, f);
+ return ATOMIC_SWAP(&unexpectedHandler, f);
}
/**
* Sets the function that is called to terminate the program.