Skip to content

Commit 1ded1fe

Browse files
author
David Ungar
committed
Don't redeclare moduleOutput.
1 parent 2f5e894 commit 1ded1fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/SwiftDriver/Driver/Driver.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,19 +222,17 @@ public struct Driver {
222222
(self.debugInfoLevel, self.debugInfoFormat) = Self.computeDebugInfo(&parsedOptions, diagnosticsEngine: diagnosticEngine)
223223

224224
// Determine the module we're building and whether/how the module file itself will be emitted.
225-
let moduleOutput: ModuleOutput?
226-
(moduleOutput, self.moduleName) = try Self.computeModuleInfo(
225+
(self.moduleOutput, self.moduleName) = try Self.computeModuleInfo(
227226
&parsedOptions, compilerOutputType: compilerOutputType, compilerMode: compilerMode, linkerOutputType: linkerOutputType,
228227
debugInfoLevel: debugInfoLevel, diagnosticsEngine: diagnosticEngine)
229-
self.moduleOutput = moduleOutput
230228

231229
// Determine the state for incremental compilation
232230
self.incrementalCompilation = IncrementalCompilation(
233231
&parsedOptions,
234232
compilerMode: compilerMode,
235233
outputFileMap: self.outputFileMap,
236234
compilerOutputType: self.compilerOutputType,
237-
moduleOutput: moduleOutput,
235+
moduleOutput: self.moduleOutput,
238236
inputFiles: inputFiles,
239237
diagnosticEngine: diagnosticEngine)
240238

0 commit comments

Comments
 (0)