summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-03-14 15:17:55 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-03-14 15:17:55 +0000
commitc1f5a441fffd9aa97ea5b56e183068d8de3ae03b (patch)
tree2896fb8a40160f03bc4a96b74b9390a3d82e6dc7
parent188f3c7c17139dfb77518a1b52dfa482d9e1ced2 (diff)
DarwinParser: include limits
In debug mode, we have assertions that the values do not exceed the limits of the type holding them. In order to account for the type being derived from the AddressSpace and thus a typedef, we use `std::numeric_limits`. Include the appropriate header. Thanks to Marshal Clow for pointing out the missing include! git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@297744 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--src/DwarfParser.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DwarfParser.hpp b/src/DwarfParser.hpp
index 81f1658..3c98d30 100644
--- a/src/DwarfParser.hpp
+++ b/src/DwarfParser.hpp
@@ -17,6 +17,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
+#include <limits>
#include "libunwind.h"
#include "dwarf2.h"