summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Printable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Printable.h')
-rw-r--r--include/llvm/Support/Printable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/Printable.h b/include/llvm/Support/Printable.h
index 5c1b8d5070d43..83b8f0998ae6a 100644
--- a/include/llvm/Support/Printable.h
+++ b/include/llvm/Support/Printable.h
@@ -38,8 +38,8 @@ class raw_ostream;
class Printable {
public:
std::function<void(raw_ostream &OS)> Print;
- Printable(const std::function<void(raw_ostream &OS)> Print)
- : Print(Print) {}
+ Printable(std::function<void(raw_ostream &OS)> Print)
+ : Print(std::move(Print)) {}
};
static inline raw_ostream &operator<<(raw_ostream &OS, const Printable &P) {