[libunwind] r297744 - DarwinParser: include limits

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 14 08:17:55 PDT 2017


Author: compnerd
Date: Tue Mar 14 10:17:55 2017
New Revision: 297744

URL: http://llvm.org/viewvc/llvm-project?rev=297744&view=rev
Log:
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!

Modified:
    libunwind/trunk/src/DwarfParser.hpp

Modified: libunwind/trunk/src/DwarfParser.hpp
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/DwarfParser.hpp?rev=297744&r1=297743&r2=297744&view=diff
==============================================================================
--- libunwind/trunk/src/DwarfParser.hpp (original)
+++ libunwind/trunk/src/DwarfParser.hpp Tue Mar 14 10:17:55 2017
@@ -17,6 +17,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <limits>
 
 #include "libunwind.h"
 #include "dwarf2.h"




More information about the cfe-commits mailing list