[llvm] 69bab9d - [NFC] For formatting for `enumerator_result::get`.
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 10:46:24 PDT 2023
Author: Rahul Joshi
Date: 2023-03-28T10:45:43-07:00
New Revision: 69bab9d91986c4be15782e7f82df39da11cf697d
URL: https://github.com/llvm/llvm-project/commit/69bab9d91986c4be15782e7f82df39da11cf697d
DIFF: https://github.com/llvm/llvm-project/commit/69bab9d91986c4be15782e7f82df39da11cf697d.diff
LOG: [NFC] For formatting for `enumerator_result::get`.
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 9c56fe9bc24a..6475ac797607 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -2320,8 +2320,7 @@ template <typename... Refs> struct enumerator_result<std::size_t, Refs...> {
/// Returns the value at index `I`. This case covers references to the
/// iteratees.
template <std::size_t I, typename = std::enable_if_t<I != 0>>
- friend decltype(auto)
- get(const enumerator_result &Result) {
+ friend decltype(auto) get(const enumerator_result &Result) {
// Note: This is a separate function from the other `get`, instead of an
// `if constexpr` case, to work around an MSVC 19.31.31XXX compiler
// (Visual Studio 2022 17.1) return type deduction bug.
More information about the llvm-commits
mailing list