summaryrefslogtreecommitdiffstats
path: root/lib/Tooling
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-10-30 11:17:09 +0000
committerHaojian Wu <hokein@google.com>2017-10-30 11:17:09 +0000
commit7fc4b5017f6fa01d6078ef7d5fb156f044a69125 (patch)
tree6c9cc8c089f338c687498e80259785c3731c949c /lib/Tooling
parenta621a8df84caef38f942e31b2a3a6e2fbadf1732 (diff)
[refactor] Fix a clang-tidy warning.
NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling')
-rw-r--r--lib/Tooling/Refactoring/Rename/RenamingAction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Tooling/Refactoring/Rename/RenamingAction.cpp b/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
index 210b45b79e..695fa553b4 100644
--- a/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
+++ b/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
@@ -77,7 +77,8 @@ RenameOccurrences::initiate(RefactoringRuleContext &Context,
if (!ND)
return Context.createDiagnosticError(
SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol);
- return RenameOccurrences(getCanonicalSymbolDeclaration(ND), NewName);
+ return RenameOccurrences(getCanonicalSymbolDeclaration(ND),
+ std::move(NewName));
}
Expected<AtomicChanges>