diff --git a/clang/include/clang/Frontend/CompilerInvocation.h b/clang/include/clang/Frontend/CompilerInvocation.h index b79a1a53c1501..45e263e7bc768 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.