From 4527ebecb6f1b50858182565ab09018d0415c001 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Mon, 19 Dec 2016 03:47:35 +0000 Subject: [PATCH] [XRay][compiler-rt] Explicitly include for types 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/xray/xray_inmemory_log.cc b/compiler-rt/lib/xray/xray_inmemory_log.cc index fc1cfd7..7ec56f4 100644 --- a/compiler-rt/lib/xray/xray_inmemory_log.cc +++ b/compiler-rt/lib/xray/xray_inmemory_log.cc @@ -16,6 +16,7 @@ //===----------------------------------------------------------------------===// #include +#include #include #include #include @@ -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((E + 6) - TmpFilename) > - (sizeof(TmpFilename) - 1)) { + if (static_cast((E + 6) - TmpFilename) > (sizeof(TmpFilename) - 1)) { Report("XRay log file base too long: %s\n", flags()->xray_logfile_base); return -1; } -- 2.7.4