diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index c56ca97856c2b2..8e18b6a95aac02 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -725,8 +725,8 @@ class zip_shortest : public zip_common, Iters...> { template bool test(const zip_shortest &other, std::index_sequence) const { - return all_of(std::array{std::get(this->iterators) != - std::get(other.iterators)...}, + return all_of(std::initializer_list{std::get(this->iterators) != + std::get(other.iterators)...}, identity{}); }