forked from OSchip/llvm-project
[refactor] Fix a clang-tidy warning.
NFC llvm-svn: 316895
This commit is contained in:
parent
e63db55c67
commit
f5142bf97f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue