diff options
author | Dean Michael Berris <dberris@google.com> | 2016-12-19 03:47:35 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2016-12-19 03:47:35 +0000 |
commit | c18aae660ae0f70f61f43efd37edb40abebc5bc4 (patch) | |
tree | fcd2b23cc88243708f93476d914a45c057b2b92f /lib/xray | |
parent | 15ff979902c3ef8f2872f2d3967712897d8abb11 (diff) |
[XRay][compiler-rt] Explicitly include <cstdint> for types
This is an attempt to un-break the ARM7, AArch64 builds.
Follow-up on D25360.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray')
-rw-r--r-- | lib/xray/xray_inmemory_log.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xray/xray_inmemory_log.cc b/lib/xray/xray_inmemory_log.cc index fc1cfd7d3..7ec56f486 100644 --- a/lib/xray/xray_inmemory_log.cc +++ b/lib/xray/xray_inmemory_log.cc @@ -16,6 +16,7 @@ //===----------------------------------------------------------------------===// #include <cassert> +#include <cstdint> #include <cstdio> #include <fcntl.h> #include <mutex> @@ -113,8 +114,7 @@ static int __xray_OpenLogFile() XRAY_NEVER_INSTRUMENT { static char TmpWildcardPattern[] = "XXXXXX"; auto E = internal_strncat(TmpFilename, flags()->xray_logfile_base, sizeof(TmpFilename) - 10); - if (static_cast<size_t>((E + 6) - TmpFilename) > - (sizeof(TmpFilename) - 1)) { + if (static_cast<size_t>((E + 6) - TmpFilename) > (sizeof(TmpFilename) - 1)) { Report("XRay log file base too long: %s\n", flags()->xray_logfile_base); return -1; } |