Skip to content

Commit 499c37f

Browse files
Update CallingConvEmitter.cpp
1 parent debad0c commit 499c37f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/CallingConvEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ void CallingConvEmitter::EmitAction(const Record *Action, indent Indent,
163163
O << Indent << "if (MCRegister Reg = State.AllocateReg(" << Name
164164
<< ")) {\n";
165165
if (SwiftAction)
166-
AssignedSwiftRegsMap[CurrentAction].insert(Name);
166+
AssignedSwiftRegsMap[CurrentAction].insert(std::move(Name));
167167
else
168-
AssignedRegsMap[CurrentAction].insert(Name);
168+
AssignedRegsMap[CurrentAction].insert(std::move(Name));
169169
} else {
170170
O << Indent << "static const MCPhysReg RegList" << ++Counter
171171
<< "[] = {\n";

0 commit comments

Comments
 (0)