@@ -1945,8 +1945,7 @@ static bool writeFilelistIfNecessary(const Job *job, const ArgList &args,
1945
1945
}
1946
1946
1947
1947
Compilation::Result
1948
- Compilation::performJobsImpl (bool &abnormalExit,
1949
- std::unique_ptr<TaskQueue> &&TQ) {
1948
+ Compilation::performJobsImpl (std::unique_ptr<TaskQueue> &&TQ) {
1950
1949
PerformJobsState State (*this , std::move (TQ));
1951
1950
1952
1951
State.runJobs ();
@@ -1956,13 +1955,11 @@ Compilation::performJobsImpl(bool &abnormalExit,
1956
1955
State.populateInputInfoMap (InputInfo);
1957
1956
checkForOutOfDateInputs (Diags, InputInfo);
1958
1957
1959
- abnormalExit = State.hadAnyAbnormalExit ();
1960
1958
auto result = std::move (State).takeResult ();
1961
1959
writeCompilationRecord (CompilationRecordPath, ArgsHash, BuildStartTime,
1962
1960
InputInfo);
1963
1961
return result;
1964
1962
} else {
1965
- abnormalExit = State.hadAnyAbnormalExit ();
1966
1963
return std::move (State).takeResult ();
1967
1964
}
1968
1965
}
@@ -2062,15 +2059,14 @@ Compilation::Result Compilation::performJobs(std::unique_ptr<TaskQueue> &&TQ) {
2062
2059
Diags.diagnose (SourceLoc (), diag::warning_parallel_execution_not_supported);
2063
2060
}
2064
2061
2065
- bool abnormalExit;
2066
- auto result = performJobsImpl (abnormalExit, std::move (TQ));
2062
+ auto result = performJobsImpl (std::move (TQ));
2067
2063
2068
2064
if (IncrementalComparator)
2069
2065
IncrementalComparator->outputComparison ();
2070
2066
2071
2067
if (!SaveTemps) {
2072
2068
for (const auto &pathPair : TempFilePaths) {
2073
- if (!abnormalExit || pathPair.getValue () == PreserveOnSignal::No)
2069
+ if (!result. hadAbnormalExit || pathPair.getValue () == PreserveOnSignal::No)
2074
2070
(void )llvm::sys::fs::remove (pathPair.getKey ());
2075
2071
}
2076
2072
}
0 commit comments