Use LLVM_CONSTEXPR to appease MSVC2013 (fixup for r283854)
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 11 Oct 2016 07:29:43 +0000 (07:29 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 11 Oct 2016 07:29:43 +0000 (07:29 +0000)
llvm-svn: 283855

llvm/include/llvm/Support/RandomNumberGenerator.h

index 1250132..1a1e2fd 100644 (file)
@@ -43,8 +43,8 @@ public:
 
   /// Returns a random number in the range [0, Max).
   result_type operator()();
-  static constexpr result_type min() { return generator_type::min(); }
-  static constexpr result_type max() { return generator_type::max(); }
+  static LLVM_CONSTEXPR result_type min() { return generator_type::min(); }
+  static LLVM_CONSTEXPR result_type max() { return generator_type::max(); }
 
 private:
   /// Seeds and salts the underlying RNG engine.