[lld] [lld] Add explicit std::move(...) to avoid a few vector copies (PR #180474)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 03:42:35 PST 2026
================
@@ -1339,7 +1339,7 @@ void LinkerDriver::parsePDBAltPath() {
cursor = secondMark + 1;
}
- ctx.config.pdbAltPath = buf;
+ ctx.config.pdbAltPath = std::move(buf);
----------------
serge-sans-paille wrote:
Actually we cannot work in place as the buffer computation involves referencing the old value for `ctx.config.pdbAltPath`
https://github.com/llvm/llvm-project/pull/180474
More information about the llvm-commits
mailing list