[all-commits] [llvm/llvm-project] 70de7e: [compiler-rt] FuzzedDataProvider: Add PickValueInA...

Max Moroz via All-commits all-commits at lists.llvm.org
Wed Dec 30 10:29:00 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70de7e0d9a95b7fcd7c105b06bd90fdf4e01f563
      https://github.com/llvm/llvm-project/commit/70de7e0d9a95b7fcd7c105b06bd90fdf4e01f563
  Author: Max Moroz <mmoroz at chromium.org>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M compiler-rt/include/fuzzer/FuzzedDataProvider.h
    M compiler-rt/lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp

  Log Message:
  -----------
  [compiler-rt] FuzzedDataProvider: Add PickValueInArray for std::array

This makes `PickValueInArray` work for `std::array<T, s>` (C++11). I've also tested the C++17 `std::array` (with compiler-deduced template parameters)

```
Author:
MarcoFalke <falke.marco at gmail.com>
```

Reviewed By: Dor1s

Differential Revision: https://reviews.llvm.org/D93412




More information about the All-commits mailing list