[llvm] fixed #95641 pointless string copy (PR #127325)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 22 07:58:47 PST 2025
================
@@ -113,7 +113,7 @@ int llvm::TableGenMain(const char *argv0,
return reportError(argv0, "Could not open input file '" + InputFilename +
"': " + EC.message() + "\n");
- Records.saveInputFilename(InputFilename);
+ Records.saveInputFilename(std::move(InputFilename));
----------------
RKSimon wrote:
drop the std::move here and just rely on the saveInputFilename - its not out of the question that someone could try to use InputFilename again later
https://github.com/llvm/llvm-project/pull/127325
More information about the llvm-commits
mailing list