[compiler-rt] r279819 - [compiler-rt][XRay] Remove unnecessary assertion.
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 05:33:34 PDT 2016
Author: dberris
Date: Fri Aug 26 07:33:33 2016
New Revision: 279819
URL: http://llvm.org/viewvc/llvm-project?rev=279819&view=rev
Log:
[compiler-rt][XRay] Remove unnecessary assertion.
This assert only causes issues with signed/unsigned comparisons.
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=279819&r1=279818&r2=279819&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_inmemory_log.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_inmemory_log.cc Fri Aug 26 07:33:33 2016
@@ -53,9 +53,6 @@ static void retryingWriteAll(int Fd, cha
Report("Failed to write; errno = %d", errno);
return;
}
-
- // FIXME: Figure out whether/how to assert properly.
- assert(static_cast<uint64_t>(Written) <= TotalBytes);
TotalBytes -= Written;
if (TotalBytes == 0)
break;
More information about the llvm-commits
mailing list