[llvm] r283916 - Avoid unnecessary constexpr to appease MSVC 2013

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 11:35:13 PDT 2016


Author: rnk
Date: Tue Oct 11 13:35:13 2016
New Revision: 283916

URL: http://llvm.org/viewvc/llvm-project?rev=283916&view=rev
Log:
Avoid unnecessary constexpr to appease MSVC 2013

Modified:
    llvm/trunk/unittests/IR/ModuleTest.cpp

Modified: llvm/trunk/unittests/IR/ModuleTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/ModuleTest.cpp?rev=283916&r1=283915&r2=283916&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/ModuleTest.cpp (original)
+++ llvm/trunk/unittests/IR/ModuleTest.cpp Tue Oct 11 13:35:13 2016
@@ -59,7 +59,7 @@ TEST(ModuleTest, randomNumberGenerator)
   Module M("R", Context);
 
   std::uniform_int_distribution<int> dist;
-  constexpr std::size_t NBCheck = 10;
+  const size_t NBCheck = 10;
 
   std::array<int, NBCheck> RandomStreams[2];
   for (auto &RandomStream : RandomStreams) {




More information about the llvm-commits mailing list