diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/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 @@ -832,9 +833,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: diff --git a/llvm/include/llvm/MC/SubtargetFeature.h b/llvm/include/llvm/MC/SubtargetFeature.h --- a/llvm/include/llvm/MC/SubtargetFeature.h +++ b/llvm/include/llvm/MC/SubtargetFeature.h @@ -17,6 +17,7 @@ #ifndef LLVM_MC_SUBTARGETFEATURE_H #define LLVM_MC_SUBTARGETFEATURE_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/MathExtras.h"