[libcxx-commits] [libcxx] [libc++][NFC] Remove unused <cassert> from algorithm benchmarks (PR #209492)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 14 07:01:08 PDT 2026


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/209492

A few benchmark files were including <cassert> but didn't use it.

>From 8ce4607481f0877a49d0192dcb3c4853e082942d Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Tue, 14 Jul 2026 09:56:32 -0400
Subject: [PATCH] [libc++][NFC] Remove unused <cassert> from algorithm
 benchmarks

A few benchmark files were including <cassert> but didn't use it.
---
 libcxx/test/benchmarks/algorithms/min.bench.cpp                  | 1 -
 libcxx/test/benchmarks/algorithms/minmax.bench.cpp               | 1 -
 .../test/benchmarks/algorithms/nonmodifying/search_n.bench.cpp   | 1 -
 3 files changed, 3 deletions(-)

diff --git a/libcxx/test/benchmarks/algorithms/min.bench.cpp b/libcxx/test/benchmarks/algorithms/min.bench.cpp
index 72088557784e9..f89670b15142f 100644
--- a/libcxx/test/benchmarks/algorithms/min.bench.cpp
+++ b/libcxx/test/benchmarks/algorithms/min.bench.cpp
@@ -9,7 +9,6 @@
 // UNSUPPORTED: c++03, c++11, c++14, c++17
 
 #include <algorithm>
-#include <cassert>
 #include <deque>
 #include <list>
 #include <vector>
diff --git a/libcxx/test/benchmarks/algorithms/minmax.bench.cpp b/libcxx/test/benchmarks/algorithms/minmax.bench.cpp
index 299b71837fb27..abec6429febbc 100644
--- a/libcxx/test/benchmarks/algorithms/minmax.bench.cpp
+++ b/libcxx/test/benchmarks/algorithms/minmax.bench.cpp
@@ -9,7 +9,6 @@
 // UNSUPPORTED: c++03, c++11, c++14, c++17
 
 #include <algorithm>
-#include <cassert>
 #include <deque>
 #include <list>
 #include <vector>
diff --git a/libcxx/test/benchmarks/algorithms/nonmodifying/search_n.bench.cpp b/libcxx/test/benchmarks/algorithms/nonmodifying/search_n.bench.cpp
index 212aabfd7cdb3..2eafebb993f12 100644
--- a/libcxx/test/benchmarks/algorithms/nonmodifying/search_n.bench.cpp
+++ b/libcxx/test/benchmarks/algorithms/nonmodifying/search_n.bench.cpp
@@ -9,7 +9,6 @@
 // UNSUPPORTED: c++03, c++11, c++14, c++17
 
 #include <algorithm>
-#include <cassert>
 #include <cstddef>
 #include <deque>
 #include <list>



More information about the libcxx-commits mailing list