Index: llvm/include/llvm/ADT/STLExtras.h =================================================================== --- llvm/include/llvm/ADT/STLExtras.h +++ llvm/include/llvm/ADT/STLExtras.h @@ -17,7 +17,7 @@ #ifndef LLVM_ADT_STLEXTRAS_H #define LLVM_ADT_STLEXTRAS_H -#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/Hashing.h" #include "llvm/ADT/STLForwardCompat.h" #include "llvm/ADT/STLFunctionalExtras.h" #include "llvm/ADT/identity.h" @@ -26,6 +26,7 @@ #include "llvm/Config/abi-breaking.h" #include "llvm/Support/ErrorHandling.h" #include +#include #include #include #include @@ -826,9 +827,10 @@ template bool test(const zip_shortest &other, std::index_sequence) const { - return all_of(llvm::ArrayRef({std::get(this->iterators) != - std::get(other.iterators)...}), - identity{}); + return all_of( + std::array({std::get(this->iterators) != + std::get(other.iterators)...}), + identity{}); } public: