Skip to content

Commit 648354f

Browse files
committed
Untrail the return type
1 parent 377b12d commit 648354f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ADT/STLForwardCompat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ using type_identity_t // NOLINT(readability-identifier-naming)
5757
// C++23.
5858
template <typename Optional, typename Function,
5959
typename Value = typename llvm::remove_cvref_t<Optional>::value_type>
60-
auto transformOptional(Optional &&O, Function &&F)
61-
-> std::optional<std::invoke_result_t<Function, Value>> {
60+
std::optional<std::invoke_result_t<Function, Value>>
61+
transformOptional(Optional &&O, Function &&F) {
6262
if (O) {
6363
return F(*std::forward<Optional>(O));
6464
}

0 commit comments

Comments
 (0)