Skip to content

Commit 4325a07

Browse files
authored
[orc-rt] Fix deleted copy operations in move_only_function. (llvm#155056)
These were incorrectly defined with r-value references.
1 parent 65d1262 commit 4325a07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orc-rt/include/orc-rt/move_only_function.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ class move_only_function<RetT(ArgTs...)> {
5959
move_only_function() = default;
6060
move_only_function(std::nullptr_t) {}
6161
move_only_function(move_only_function &&) = default;
62-
move_only_function(const move_only_function &&) = delete;
62+
move_only_function(const move_only_function &) = delete;
6363
move_only_function &operator=(move_only_function &&) = default;
64-
move_only_function &operator=(const move_only_function &&) = delete;
64+
move_only_function &operator=(const move_only_function &) = delete;
6565

6666
template <typename CallableT>
6767
move_only_function(CallableT &&Callable)

0 commit comments

Comments
 (0)