Replace SIZE_T_MAX with std::numeric_limits value in Section.cpp.
SIZE_T_MAX is not available on Linux.
llvm-svn: 208789
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp
index 115c662..deaebb4 100644
--- a/lldb/source/Core/Section.cpp
+++ b/lldb/source/Core/Section.cpp
@@ -13,6 +13,8 @@
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/Target.h"
+#include <limits>
+
using namespace lldb;
using namespace lldb_private;
@@ -337,7 +339,8 @@
m_sections.push_back(section_sp);
return section_index;
}
- return SIZE_T_MAX;
+
+ return std::numeric_limits<size_t>::max ();
}
// Warning, this can be slow as it's removing items from a std::vector.