mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
remove VS2015 workaround (NFC)
VS2015 had an issue with the deletion of an operator. Since VS2017 is the minimum version that LLVM uses, we can assume that VS2017+ is in use (_MSC_VER >= 1910). Clean up the now defunct workaround.
This commit is contained in:
@@ -27,15 +27,6 @@
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#if SWIFT_COMPILER_IS_MSVC && _MSC_VER < 1910
|
||||
// Work around MSVC bug: attempting to reference a deleted function
|
||||
// https://connect.microsoft.com/VisualStudio/feedback/details/3116505
|
||||
#define SWIFT_DELETE_OPERATOR_DELETED \
|
||||
{ llvm_unreachable("Delete operator should not be called."); }
|
||||
#else
|
||||
#define SWIFT_DELETE_OPERATOR_DELETED = delete;
|
||||
#endif
|
||||
|
||||
// __builtin_assume() is an optimization hint.
|
||||
#if __has_builtin(__builtin_assume)
|
||||
#define SWIFT_ASSUME(x) __builtin_assume(x)
|
||||
|
||||
Reference in New Issue
Block a user