From fe9b3289e67c4558d52b5035a0de1eae3bd96d10 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 7 Feb 2013 11:08:03 +0000 Subject: [PATCH] Fix a copy-and-paste error in libcxxrt. --- contrib/libcxxrt/exception.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libcxxrt/exception.cc b/contrib/libcxxrt/exception.cc index 4ccf38eba7ac..7f0d3e8b0f6a 100644 --- a/contrib/libcxxrt/exception.cc +++ b/contrib/libcxxrt/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.