Skip to content

Commit d1fcd48

Browse files
committed
Remove explicit std::move, it should happen implicitly
1 parent 3139ef7 commit d1fcd48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Lower/OpenMP/Clauses.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ std::optional<ResultTy> maybeApply(FuncTy &&func,
150150
const std::optional<ArgTy> &arg) {
151151
if (!arg)
152152
return std::nullopt;
153-
return std::move(func(*arg));
153+
return func(*arg);
154154
}
155155

156156
template <
@@ -160,7 +160,7 @@ template <
160160
std::optional<ResultTy> maybeApplyToV(FuncTy &&func, const ArgTy *arg) {
161161
if (!arg)
162162
return std::nullopt;
163-
return std::move(func(arg->v));
163+
return func(arg->v);
164164
}
165165

166166
std::optional<Object> getBaseObject(const Object &object,

0 commit comments

Comments
 (0)