summaryrefslogtreecommitdiff
path: root/include/llvm/LineEditor/LineEditor.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
commit01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch)
tree4def12e759965de927d963ac65840d663ef9d1ea /include/llvm/LineEditor/LineEditor.h
parentf0f4822ed4b66e3579e92a89f368f8fb860e218e (diff)
Diffstat (limited to 'include/llvm/LineEditor/LineEditor.h')
-rw-r--r--include/llvm/LineEditor/LineEditor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/LineEditor/LineEditor.h b/include/llvm/LineEditor/LineEditor.h
index bb106f87ca487..68995d0633add 100644
--- a/include/llvm/LineEditor/LineEditor.h
+++ b/include/llvm/LineEditor/LineEditor.h
@@ -15,6 +15,7 @@
#include <cstdio>
#include <memory>
#include <string>
+#include <utility>
#include <vector>
namespace llvm {
@@ -137,7 +138,7 @@ private:
template <typename T>
struct ListCompleterModel : ListCompleterConcept {
- ListCompleterModel(T Value) : Value(Value) {}
+ ListCompleterModel(T Value) : Value(std::move(Value)) {}
std::vector<Completion> getCompletions(StringRef Buffer,
size_t Pos) const override {
return Value(Buffer, Pos);