From fdb0f39ae27e41116b0cb1dc81af608b3b39df29 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Fri, 26 Aug 2016 12:33:33 +0000 Subject: [PATCH] [compiler-rt][XRay] Remove unnecessary assertion. This assert only causes issues with signed/unsigned comparisons. llvm-svn: 279819 --- compiler-rt/lib/xray/xray_inmemory_log.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler-rt/lib/xray/xray_inmemory_log.cc b/compiler-rt/lib/xray/xray_inmemory_log.cc index 073ebe7..a308de7 100644 --- a/compiler-rt/lib/xray/xray_inmemory_log.cc +++ b/compiler-rt/lib/xray/xray_inmemory_log.cc @@ -53,9 +53,6 @@ static void retryingWriteAll(int Fd, char *Begin, char *End) { Report("Failed to write; errno = %d", errno); return; } - - // FIXME: Figure out whether/how to assert properly. - assert(static_cast(Written) <= TotalBytes); TotalBytes -= Written; if (TotalBytes == 0) break; -- 2.7.4