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
#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;
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: