[llvm] 860efb1 - Partially revert "[llvm] Repair the modules build with C++17"
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 15:25:15 PDT 2022
Author: Jonas Devlieghere
Date: 2022-08-08T15:25:10-07:00
New Revision: 860efb10b42e71ac96d07ea3f45c1baf10ee3f09
URL: https://github.com/llvm/llvm-project/commit/860efb10b42e71ac96d07ea3f45c1baf10ee3f09
DIFF: https://github.com/llvm/llvm-project/commit/860efb10b42e71ac96d07ea3f45c1baf10ee3f09.diff
LOG: Partially revert "[llvm] Repair the modules build with C++17"
This reverts commit db008af501534d4590542253ae3acf783986f5f7 because
this now breaks the non-module build...
Added:
Modified:
llvm/include/llvm/ADT/STLExtras.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index c56ca97856c2b..8e18b6a95aac0 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<zip_shortest<Iters...>, Iters...> {
template <size_t... Ns>
bool test(const zip_shortest<Iters...> &other,
std::index_sequence<Ns...>) const {
- return all_of(std::array{std::get<Ns>(this->iterators) !=
- std::get<Ns>(other.iterators)...},
+ return all_of(std::initializer_list<bool>{std::get<Ns>(this->iterators) !=
+ std::get<Ns>(other.iterators)...},
identity<bool>{});
}
More information about the llvm-commits
mailing list