diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-04-12 01:44:13 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-04-12 01:44:13 +0000 |
commit | 4540ca36a0b6435c53b81d208b136844cf546068 (patch) | |
tree | 2c24464bb6da835f66a07d61fda2f2856104a1d2 /llvm/lib/IR/Attributes.cpp | |
parent | b184bfa13b9f930f1077bc8e670b2ae46b3cce2e (diff) | |
download | bcm5719-llvm-4540ca36a0b6435c53b81d208b136844cf546068.tar.gz bcm5719-llvm-4540ca36a0b6435c53b81d208b136844cf546068.zip |
Attempt to make buildbot happier with r266032.
Apparently std::numeric_limits<unsigned>::max() isn't constexpr
everywhere yet.
llvm-svn: 266034
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index d098fc1a401..0b775337be5 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -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) { |