summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-10-19 23:34:58 +0000
committerReid Kleckner <rnk@google.com>2016-10-19 23:34:58 +0000
commite1d6998f5d5952481ac29a731430c2c93ed08b6a (patch)
tree78b2217f4a1a1e9968eb8119e38d59b1f278f044
parentfe90d86c8e5b3a8f316ada89d2359d81f84bd593 (diff)
downloadbcm5719-llvm-e1d6998f5d5952481ac29a731430c2c93ed08b6a.tar.gz
bcm5719-llvm-e1d6998f5d5952481ac29a731430c2c93ed08b6a.zip
Update Compiler.h to fail fast when building with MSVC 2013
llvm-svn: 284665
-rw-r--r--llvm/include/llvm/Support/Compiler.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index c923e9bb23a..33a0399261e 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -60,14 +60,13 @@
/// \macro LLVM_MSC_PREREQ
/// \brief Is the compiler MSVC of at least the specified version?
/// The common \param version values to check for are:
-/// * 1800: Microsoft Visual Studio 2013 / 12.0
/// * 1900: Microsoft Visual Studio 2015 / 14.0
#ifdef _MSC_VER
#define LLVM_MSC_PREREQ(version) (_MSC_VER >= (version))
-// We require at least MSVC 2013.
-#if !LLVM_MSC_PREREQ(1800)
-#error LLVM requires at least MSVC 2013.
+// We require at least MSVC 2015.
+#if !LLVM_MSC_PREREQ(1900)
+#error LLVM requires at least MSVC 2015.
#endif
#else
OpenPOWER on IntegriCloud