[libc-commits] [libc] [libc] Fix Cppcheck Issues (PR #96999)

via libc-commits libc-commits at lists.llvm.org
Fri Jun 28 12:12:13 PDT 2024


================
@@ -92,23 +92,22 @@ BenchmarkResult benchmark(const BenchmarkOptions &options,
   for (int i = 0; i < overhead_iterations; i++)
     overhead = cpp::min(overhead, LIBC_NAMESPACE::overhead());
 
-  for (uint64_t time_budget = options.max_duration; time_budget >= 0;) {
+  for (uint64_t time_budget = options.max_duration; time_budget != 0;) {
----------------
jameshu15869 wrote:

Oops, I totally missed this

https://github.com/llvm/llvm-project/pull/96999


More information about the libc-commits mailing list