From 82de7d323d1d03764d3595e9d2d903437e9022f2 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 27 May 2016 14:27:24 +0000 Subject: Apply clang-tidy's misc-move-constructor-init throughout LLVM. No functionality change intended, maybe a tiny performance improvement. llvm-svn: 270997 --- llvm/utils/TableGen/CodeGenInstruction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/utils/TableGen/CodeGenInstruction.h') diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index 8e371aff0e0..8e5a03d7b74 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/utils/TableGen/CodeGenInstruction.h @@ -316,7 +316,8 @@ template class ArrayRef; K_Reg } Kind; - ResultOperand(std::string N, Record *r) : Name(N), R(r), Kind(K_Record) {} + ResultOperand(std::string N, Record *r) + : Name(std::move(N)), R(r), Kind(K_Record) {} ResultOperand(int64_t I) : Imm(I), Kind(K_Imm) {} ResultOperand(Record *r) : R(r), Kind(K_Reg) {} -- cgit v1.2.3