forked from OSchip/llvm-project
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
This commit is contained in:
parent
27a1bc0eae
commit
a9aa270c67
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue