]> granicus.if.org Git - clang/commitdiff
Add an explicitly defaulted copy ctor (and FIXME) to Command since its copy ctor...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 28 Sep 2015 23:48:52 +0000 (23:48 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 28 Sep 2015 23:48:52 +0000 (23:48 +0000)
Justin mentioned he'd look into this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248760 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Job.h

index 526aff42e594b81c083d500c4518e9198d527d73..263356f396f3ee755d9090dab1ebd91e830d883e 100644 (file)
@@ -85,6 +85,9 @@ public:
   Command(const Action &Source, const Tool &Creator, const char *Executable,
           const llvm::opt::ArgStringList &Arguments,
           ArrayRef<InputInfo> Inputs);
+  // FIXME: This really shouldn't be copyable, but is currently copied in some
+  // error handling in Driver::generateCompilationDiagnostics.
+  Command(const Command &) = default;
   virtual ~Command() {}
 
   virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote,