Files
clang-p2996/lldb/test/make/uncaught_exception.h
Zachary Turner c7826524ac Get test executables compiling on Windows.
Many of the test executables use pthreads directly.  This isn't
portable on Windows, so this patch converts these test to use
C++11 threads and mutexes.  Since Windows' implementation of
std::thread classes throw and catch from header files, this patch
also disables exceptions when compiling with clang on Windows.

Reviewed by: Todd Fiala, Ed Maste

Differential Revision: http://reviews.llvm.org/D4816

llvm-svn: 215562
2014-08-13 17:44:53 +00:00

6 lines
380 B
C

// MSVC header files have compilation issues when compiling with exceptions disabled. Notably,
// this function is compiled out when _HAS_EXCEPTIONS=0, but this function is called from another
// place even when _HAS_EXCEPTIONS=0. So we define a dummy implementation as a workaround and
// force include this header file.
static void *__uncaught_exception() { return nullptr; }