Skip to content

Commit aab07d8

Browse files
authored
fixed #95641 pointless string copy (#127325)
fixed #95641 by using std::move for T&&.
1 parent ff7790e commit aab07d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/TableGen/Record.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ class RecordKeeper {
19671967
}
19681968

19691969
void saveInputFilename(std::string Filename) {
1970-
InputFilename = Filename;
1970+
InputFilename = std::move(Filename);
19711971
}
19721972

19731973
void addClass(std::unique_ptr<Record> R) {

0 commit comments

Comments
 (0)