diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-10-21 21:10:12 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-10-21 21:10:12 +0000 |
commit | 45cbfa59498457de9108e148caa76a6f8e603a82 (patch) | |
tree | 713376619b949c0e2e49d5983c3a50a23a16f3ce /llvm/lib | |
parent | 29f9663f974e76a94a8f501377643cc2213db117 (diff) | |
download | bcm5719-llvm-45cbfa59498457de9108e148caa76a6f8e603a82.tar.gz bcm5719-llvm-45cbfa59498457de9108e148caa76a6f8e603a82.zip |
Use numeric_limits instead of LLONG_MAX
This is a build fix for configurations where LLONG_MAX is
not defined in system headers.
llvm-svn: 250946
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp index d22e63502d2..a11b00a926d 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -18,7 +18,7 @@ #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" #include <cassert> -#include <climits> +#include <limits> using namespace llvm; using namespace dwarf; using namespace syntax; @@ -565,7 +565,7 @@ Optional<uint64_t> DWARFFormValue::getAsUnsignedConstant() const { Optional<int64_t> DWARFFormValue::getAsSignedConstant() const { if ((!isFormClass(FC_Constant) && !isFormClass(FC_Flag)) || - (Form == DW_FORM_udata && uint64_t(LLONG_MAX) < Value.uval)) + (Form == DW_FORM_udata && uint64_t(std::numeric_limits<int64_t>::max()) < Value.uval)) return None; switch (Form) { case DW_FORM_data4: |