mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-08 19:46:39 +00:00
Define LLVM_NOEXCEPT with MSVC 14 CTP 3 or newer
We have to use _MSC_FULL_VER here as CTP 2 and earlier didn't define noexcept to my knowledge. Fixes build error in lib/Support/Error.cpp when inheriting from std::error_category, which has a noexcept virtual method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221013 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57c911e4ab
commit
fc46c68310
@ -66,7 +66,7 @@
|
|||||||
#define LLVM_MSC_PREREQ(version) 0
|
#define LLVM_MSC_PREREQ(version) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#if !defined(_MSC_VER) || (defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 190022129LL)
|
||||||
#define LLVM_NOEXCEPT noexcept
|
#define LLVM_NOEXCEPT noexcept
|
||||||
#else
|
#else
|
||||||
#define LLVM_NOEXCEPT
|
#define LLVM_NOEXCEPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user