diff options
Diffstat (limited to 'libunwindstack/Memory.h')
-rw-r--r-- | libunwindstack/Memory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libunwindstack/Memory.h b/libunwindstack/Memory.h index f9f6d5662..e353cab2f 100644 --- a/libunwindstack/Memory.h +++ b/libunwindstack/Memory.h @@ -17,7 +17,6 @@ #ifndef _LIBUNWINDSTACK_MEMORY_H #define _LIBUNWINDSTACK_MEMORY_H -#include <assert.h> #include <stdint.h> #include <sys/types.h> #include <unistd.h> @@ -25,6 +24,8 @@ #include <string> #include <vector> +#include "Check.h" + class Memory { public: Memory() = default; @@ -130,7 +131,7 @@ class MemoryRange : public Memory { public: MemoryRange(Memory* memory, uint64_t begin, uint64_t end) : memory_(memory), begin_(begin), length_(end - begin) { - assert(end > begin); + CHECK(end > begin); } virtual ~MemoryRange() { delete memory_; } |