Skip to content

Commit 8cd628f

Browse files
doc: get rid of redundant TODO tag in FuzzedDataProvider.h (llvm#137395)
'list.size()' is determined at runtime, so using static_assert on it as suggested by the TODO comment is not feasible and produces the following error when done: error: static assertion expression is not an integral constant expression initially referenced in bitcoin/bitcoin#32024 Co-authored-by: Chand-ra <[email protected]>
1 parent 9b74dce commit 8cd628f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler-rt/include/fuzzer/FuzzedDataProvider.h

-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ T FuzzedDataProvider::PickValueInArray(const std::array<T, size> &array) {
314314

315315
template <typename T>
316316
T FuzzedDataProvider::PickValueInArray(std::initializer_list<const T> list) {
317-
// TODO(Dor1s): switch to static_assert once C++14 is allowed.
318317
if (!list.size())
319318
abort();
320319

0 commit comments

Comments
 (0)