]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283855 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/RandomNumberGenerator.h

index 12501326e5ea92355475ec4dcfdaa4eccf53688e..1a1e2fd010cb74d5dcecbaeef239b59b055cb515 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.