From: Matt Arsenault Date: Wed, 21 Oct 2015 21:10:12 +0000 (+0000) Subject: Use numeric_limits instead of LLONG_MAX X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8a10a4556ba55127a124fb1b39e89ea655507381;p=oota-llvm.git Use numeric_limits instead of LLONG_MAX This is a build fix for configurations where LLONG_MAX is not defined in system headers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250946 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/lib/DebugInfo/DWARF/DWARFFormValue.cpp index d22e63502d2..a11b00a926d 100644 --- a/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -18,7 +18,7 @@ #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" #include -#include +#include using namespace llvm; using namespace dwarf; using namespace syntax; @@ -565,7 +565,7 @@ Optional DWARFFormValue::getAsUnsignedConstant() const { Optional 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::max()) < Value.uval)) return None; switch (Form) { case DW_FORM_data4: