Fix a copy-and-paste error in libcxxrt.

This commit is contained in:
David Chisnall 2013-02-07 11:08:03 +00:00
parent 2ba0f36139
commit fe9b3289e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246462

View File

@ -1387,7 +1387,7 @@ namespace std
{ {
if (thread_local_handlers) { return pathscale::set_unexpected(f); } 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. * Sets the function that is called to terminate the program.