summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Gallop <russell.gallop@sony.com>2020-09-10 14:18:37 +0100
committerRussell Gallop <russell.gallop@sony.com>2021-01-21 16:55:00 +0000
commitbe1451037cce0c6f1eb6b2ea64d6a9b056edcdf2 (patch)
tree05b83b2946168fe6a488cbb27f3ddb6b244543f1
parent42ed73b63486b838e5f93dd87ec128e5caf8cd17 (diff)
downloadllvm-be1451037cce0c6f1eb6b2ea64d6a9b056edcdf2.tar.gz
Use stdint values for typedefs instead of trying to guess types
-rw-r--r--compiler-rt/lib/scudo/standalone/internal_defs.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/compiler-rt/lib/scudo/standalone/internal_defs.h b/compiler-rt/lib/scudo/standalone/internal_defs.h
index 8e7ae69ef5e2..30ff9667cdff 100644
--- a/compiler-rt/lib/scudo/standalone/internal_defs.h
+++ b/compiler-rt/lib/scudo/standalone/internal_defs.h
@@ -50,20 +50,16 @@
namespace scudo {
-#ifdef _WIN64
-typedef unsigned long long uptr;
-#else
-typedef unsigned long uptr;
-#endif
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned int u32;
-typedef unsigned long long u64;
-typedef signed long sptr;
-typedef signed char s8;
-typedef signed short s16;
-typedef signed int s32;
-typedef signed long long s64;
+typedef uintptr_t uptr;
+typedef uint8_t u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
+typedef uint64_t u64;
+typedef intptr_t sptr;
+typedef int8_t s8;
+typedef int16_t s16;
+typedef int32_t s32;
+typedef int64_t s64;
// The following two functions have platform specific implementations.
void outputRaw(const char *Buffer);