[PATCH] D98809: [NFC] Enable RVALUE_REFERENCE_THIS on MSVC 2019
Nathan James via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 23 09:40:36 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa0f48d57a96d: [NFC] Enable RVALUE_REFERENCE_THIS on MSVC 2019 (authored by njames93).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98809/new/
https://reviews.llvm.org/D98809
Files:
llvm/include/llvm/Support/Compiler.h
Index: llvm/include/llvm/Support/Compiler.h
===================================================================
--- llvm/include/llvm/Support/Compiler.h
+++ llvm/include/llvm/Support/Compiler.h
@@ -97,7 +97,8 @@
/// Sadly, this is separate from just rvalue reference support because GCC
/// and MSVC implemented this later than everything else. This appears to be
/// corrected in MSVC 2019 but not MSVC 2017.
-#if __has_feature(cxx_rvalue_references) || LLVM_GNUC_PREREQ(4, 8, 1)
+#if __has_feature(cxx_rvalue_references) || LLVM_GNUC_PREREQ(4, 8, 1) || \
+ LLVM_MSC_PREREQ(1920)
#define LLVM_HAS_RVALUE_REFERENCE_THIS 1
#else
#define LLVM_HAS_RVALUE_REFERENCE_THIS 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98809.332705.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210323/749e44b4/attachment.bin>
More information about the llvm-commits
mailing list