From 49be160531053ba001f0337951572ea9de064eb9 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 25 Feb 2015 19:52:41 +0000 Subject: Revert "Fix warnings found with clang-cl." SWIG doesn't like enum : unsigned. Revert this until I can fix this in a way that swig likes. llvm-svn: 230531 --- lldb/source/Host/windows/ThisThread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Host/windows/ThisThread.cpp') diff --git a/lldb/source/Host/windows/ThisThread.cpp b/lldb/source/Host/windows/ThisThread.cpp index d5f5810b08e..9c37d7c57e7 100644 --- a/lldb/source/Host/windows/ThisThread.cpp +++ b/lldb/source/Host/windows/ThisThread.cpp @@ -20,6 +20,8 @@ using namespace lldb_private; namespace { +static const DWORD MS_VC_EXCEPTION = 0x406D1388; + #pragma pack(push, 8) struct THREADNAME_INFO { @@ -36,9 +38,7 @@ ThisThread::SetName(llvm::StringRef name) { // Other compilers don't yet support SEH, so we can only set the thread if compiling with MSVC. // TODO(zturner): Once clang-cl supports SEH, relax this conditional. -#if defined(_MSC_VER) && !defined(__clang__) /* clang-cl doesn't support SEH */ - static const DWORD MS_VC_EXCEPTION = 0x406D1388; - +#if defined(_MSC_VER) THREADNAME_INFO info; info.dwType = 0x1000; info.szName = name.data(); -- cgit v1.2.3