[llvm] r368889 - Don't explicitly check for C++14

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 10:48:36 PDT 2019


Author: jfb
Date: Wed Aug 14 10:48:36 2019
New Revision: 368889

URL: http://llvm.org/viewvc/llvm-project?rev=368889&view=rev
Log:
Don't explicitly check for C++14

MSVC is weird about __cplusplus. The check I added in D66195 confuses it.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=368889&r1=368888&r2=368889&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Wed Aug 14 10:48:36 2019
@@ -43,12 +43,6 @@
 # define __has_builtin(x) 0
 #endif
 
-#ifdef __cplusplus
-# if __cplusplus < 201402L
-#  error Expected C++14 or later.
-# endif
-#endif
-
 /// \macro LLVM_GNUC_PREREQ
 /// Extend the default __GNUC_PREREQ even if glibc's features.h isn't
 /// available.




More information about the llvm-commits mailing list