[llvm] r266034 - Attempt to make buildbot happier with r266032.

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 18:44:13 PDT 2016


Author: gbiv
Date: Mon Apr 11 20:44:13 2016
New Revision: 266034

URL: http://llvm.org/viewvc/llvm-project?rev=266034&view=rev
Log:
Attempt to make buildbot happier with r266032.

Apparently std::numeric_limits<unsigned>::max() isn't constexpr
everywhere yet.

Modified:
    llvm/trunk/lib/IR/Attributes.cpp

Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=266034&r1=266033&r2=266034&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Mon Apr 11 20:44:13 2016
@@ -38,8 +38,7 @@ using namespace llvm;
 //
 // In order to do this, we need to reserve one value of the second (optional)
 // allocsize argument to signify "not present."
-LLVM_CONSTEXPR static unsigned AllocSizeNumElemsNotPresent =
-    std::numeric_limits<unsigned>::max();
+LLVM_CONSTEXPR static unsigned AllocSizeNumElemsNotPresent = -1;
 
 static uint64_t packAllocSizeArgs(unsigned ElemSizeArg,
                                   const Optional<unsigned> &NumElemsArg) {




More information about the llvm-commits mailing list