aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <shafik.yaghmour@intel.com>2025-06-12 14:30:59 -0700
committerGitHub <noreply@github.com>2025-06-12 14:30:59 -0700
commite4c32a4147012da735205eb44a45b8be5eea048d (patch)
treeba1c985c6b45459b8c3da988cd1a1e14d8f3136e /clang/lib/Frontend/CompilerInstance.cpp
parentee6362515dfa4fe4531c7a7690c270313669195b (diff)
downloadllvm-e4c32a4147012da735205eb44a45b8be5eea048d.zip
llvm-e4c32a4147012da735205eb44a45b8be5eea048d.tar.gz
llvm-e4c32a4147012da735205eb44a45b8be5eea048d.tar.bz2
[Clang][NFC] Move Input into SmallVector instead of copy (#143830)
Static analysis flagged Input as a large object that would benefit from being moved over being copied.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 587b0d1..09a66b6 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1191,7 +1191,7 @@ std::unique_ptr<CompilerInstance> CompilerInstance::cloneForModuleCompileImpl(
FrontendOpts.OriginalModuleMap = std::string(OriginalModuleMapFile);
// Force implicitly-built modules to hash the content of the module file.
HSOpts.ModulesHashContent = true;
- FrontendOpts.Inputs = {Input};
+ FrontendOpts.Inputs = {std::move(Input)};
// Don't free the remapped file buffers; they are owned by our caller.
PPOpts.RetainRemappedFileBuffers = true;