We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f21acb commit 90cfbb8Copy full SHA for 90cfbb8
llvm/include/llvm/ADT/Optional.h
@@ -269,7 +269,7 @@ template <typename T> class Optional {
269
270
/// Apply a function to the value if present; otherwise return None.
271
template <class Function>
272
- auto map(const Function &F) const
+ auto map(const Function &F) const LLVM_LVALUE_FUNCTION
273
-> Optional<decltype(F(getValue()))> {
274
if (*this) return F(getValue());
275
return None;
0 commit comments