Skip to content

Commit 747c69c

Browse files
authored
Merge pull request #25639 from gottesmm/pr-1a8f63344dc43882494dc2472df5727dc9604d38
2 parents 3243f21 + 1980d57 commit 747c69c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/SILOptimizer/Mandatory/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ silopt_register_sources(
1313
DiagnoseUnreachable.cpp
1414
GuaranteedARCOpts.cpp
1515
IRGenPrepare.cpp
16+
MarkUninitializedFixup.cpp
1617
MandatoryInlining.cpp
1718
PredictableMemOpt.cpp
1819
PMOMemoryUseCollector.cpp

lib/SILOptimizer/Transforms/MarkUninitializedFixup.cpp renamed to lib/SILOptimizer/Mandatory/MarkUninitializedFixup.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ struct MarkUninitializedFixup : SILFunctionTransform {
107107
Projections.push_back(PBI);
108108
}
109109
}
110-
assert(!Projections.empty()
111-
&& "SILGen should never emit a "
112-
"mark_uninitialized by itself");
110+
assert(!Projections.empty() && "SILGen should never emit a "
111+
"mark_uninitialized by itself");
113112

114113
// First replace all uses of the mark_uninitialized with the box.
115114
MUI->replaceAllUsesWith(Box);
@@ -137,7 +136,6 @@ struct MarkUninitializedFixup : SILFunctionTransform {
137136
SILAnalysis::InvalidationKind::BranchesAndInstructions);
138137
}
139138
};
140-
141139
} // end anonymous namespace
142140

143141
SILTransform *swift::createMarkUninitializedFixup() {

lib/SILOptimizer/Transforms/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ silopt_register_sources(
1818
Devirtualizer.cpp
1919
GenericSpecializer.cpp
2020
MergeCondFail.cpp
21-
MarkUninitializedFixup.cpp
2221
Outliner.cpp
2322
ObjectOutliner.cpp
2423
OwnershipModelEliminator.cpp

0 commit comments

Comments
 (0)