summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-09-28 23:48:52 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-09-28 23:48:52 +0000
commita9aa270c67ff71a4db418ff949a5aac1892e8a52 (patch)
tree865f31a49ff31c6ef20b25e63092918d80b7c22c
parent27a1bc0eaedff774e8af117fba86876261a686d1 (diff)
downloadbcm5719-llvm-a9aa270c67ff71a4db418ff949a5aac1892e8a52.tar.gz
bcm5719-llvm-a9aa270c67ff71a4db418ff949a5aac1892e8a52.zip
Add an explicitly defaulted copy ctor (and FIXME) to Command since its copy ctor is currently used (and actually slices derived objects... ) in some diagnostics handling.
Justin mentioned he'd look into this. llvm-svn: 248760
-rw-r--r--clang/include/clang/Driver/Job.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/Job.h b/clang/include/clang/Driver/Job.h
index 526aff42e59..263356f396f 100644
--- a/clang/include/clang/Driver/Job.h
+++ b/clang/include/clang/Driver/Job.h
@@ -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,
OpenPOWER on IntegriCloud