Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang][deps] Implement move-conversion for CowCompilerInvocation #66301

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

jansvoboda11
Copy link
Contributor

@jansvoboda11 jansvoboda11 commented Sep 13, 2023

This avoids making copies at the end of makeCommonInvocationForModuleBuild() (in ModuleDepCollector.cpp).

@jansvoboda11 jansvoboda11 requested a review from a team as a code owner September 13, 2023 22:33
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Sep 13, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Sep 13, 2023

@llvm/pr-subscribers-clang

Changes This avoids doing some work at the end of `makeCommonInvocationForModuleBuild()` (in `ModuleDepCollector.cpp`). -- Full diff: https://github.com//pull/66301.diff

1 Files Affected:

  • (modified) clang/include/clang/Frontend/CompilerInvocation.h (+3)
diff --git a/clang/include/clang/Frontend/CompilerInvocation.h b/clang/include/clang/Frontend/CompilerInvocation.h
index b79a1a53c150171..45e263e7bc76822 100644
--- a/clang/include/clang/Frontend/CompilerInvocation.h
+++ b/clang/include/clang/Frontend/CompilerInvocation.h
@@ -354,6 +354,9 @@ class CowCompilerInvocation : public CompilerInvocationBase {
     deep_copy_assign(X);
   }
 
+  CowCompilerInvocation(CompilerInvocation &&X)
+      : CompilerInvocationBase(std::move(X)) {}
+
   // Const getters are inherited from the base class.
 
   /// Mutable getters.

@jansvoboda11 jansvoboda11 merged commit c60ee7c into llvm:main Sep 13, 2023
2 of 3 checks passed
@jansvoboda11 jansvoboda11 deleted the cow-ci-move branch September 13, 2023 22:51
jansvoboda11 added a commit to apple/llvm-project that referenced this pull request Sep 13, 2023
…lvm#66301)

This avoids making copies at the end of
`makeCommonInvocationForModuleBuild()` (in `ModuleDepCollector.cpp`).
ZijunZhaoCCK pushed a commit to ZijunZhaoCCK/llvm-project that referenced this pull request Sep 19, 2023
…lvm#66301)

This avoids making copies at the end of
`makeCommonInvocationForModuleBuild()` (in `ModuleDepCollector.cpp`).
jansvoboda11 added a commit to apple/llvm-project that referenced this pull request Oct 5, 2023
…lvm#66301)

This avoids making copies at the end of
`makeCommonInvocationForModuleBuild()` (in `ModuleDepCollector.cpp`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants