[compiler-rt] r290078 - [XRay][compiler-rt] Explicitly include <cstdint> for types
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 18 19:47:35 PST 2016
Author: dberris
Date: Sun Dec 18 21:47:35 2016
New Revision: 290078
URL: http://llvm.org/viewvc/llvm-project?rev=290078&view=rev
Log:
[XRay][compiler-rt] Explicitly include <cstdint> for types
This is an attempt to un-break the ARM7, AArch64 builds.
Follow-up on D25360.
Modified:
compiler-rt/trunk/lib/xray/xray_inmemory_log.cc
Modified: compiler-rt/trunk/lib/xray/xray_inmemory_log.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_inmemory_log.cc?rev=290078&r1=290077&r2=290078&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_inmemory_log.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_inmemory_log.cc Sun Dec 18 21:47:35 2016
@@ -16,6 +16,7 @@
//===----------------------------------------------------------------------===//
#include <cassert>
+#include <cstdint>
#include <cstdio>
#include <fcntl.h>
#include <mutex>
@@ -113,8 +114,7 @@ static int __xray_OpenLogFile() XRAY_NEV
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;
}
More information about the llvm-commits
mailing list