diff options
Diffstat (limited to 'clang-tools-extra/clang-modernize/LoopConvert/StmtAncestor.h')
-rw-r--r-- | clang-tools-extra/clang-modernize/LoopConvert/StmtAncestor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-modernize/LoopConvert/StmtAncestor.h b/clang-tools-extra/clang-modernize/LoopConvert/StmtAncestor.h index fae4d131347..e2ee2b9fd4e 100644 --- a/clang-tools-extra/clang-modernize/LoopConvert/StmtAncestor.h +++ b/clang-tools-extra/clang-modernize/LoopConvert/StmtAncestor.h @@ -170,9 +170,9 @@ private: class DeclFinderASTVisitor : public clang::RecursiveASTVisitor<DeclFinderASTVisitor> { public: - DeclFinderASTVisitor(std::string Name, - const StmtGeneratedVarNameMap *GeneratedDecls) - : Name(std::move(Name)), GeneratedDecls(GeneratedDecls), Found(false) {} + DeclFinderASTVisitor(const std::string &Name, + const StmtGeneratedVarNameMap *GeneratedDecls) : + Name(Name), GeneratedDecls(GeneratedDecls), Found(false) { } /// Attempts to find any usages of variables name Name in Body, returning /// true when it is used in Body. This includes the generated loop variables |