[XRay][compiler-rt] Explicitly include <cstdint> for types
authorDean Michael Berris <dberris@google.com>
Mon, 19 Dec 2016 03:47:35 +0000 (03:47 +0000)
committerDean Michael Berris <dberris@google.com>
Mon, 19 Dec 2016 03:47:35 +0000 (03:47 +0000)
This is an attempt to un-break the ARM7, AArch64 builds.

Follow-up on D25360.

llvm-svn: 290078

compiler-rt/lib/xray/xray_inmemory_log.cc

index fc1cfd7..7ec56f4 100644 (file)
@@ -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;
   }