Skip to content

Commit 6132f18

Browse files
committed
[BatchMode] Add virtual destructor to Job.
1 parent d3ad4ed commit 6132f18

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/swift/Driver/Job.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ class Job {
236236
ExtraEnvironment(std::move(ExtraEnvironment)),
237237
FilelistFileInfos(std::move(Infos)) {}
238238

239+
virtual ~Job();
240+
239241
const JobAction &getSource() const {
240242
return *SourceAndCondition.getPointer();
241243
}

lib/Driver/Job.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ CommandOutput::dump() const {
181181
llvm::errs() << '\n';
182182
}
183183

184+
Job::~Job() = default;
184185

185186
void Job::printArguments(raw_ostream &os,
186187
const llvm::opt::ArgStringList &Args) {

0 commit comments

Comments
 (0)