Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/SILOptimizer/Mandatory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ silopt_register_sources(
DiagnoseUnreachable.cpp
GuaranteedARCOpts.cpp
IRGenPrepare.cpp
MarkUninitializedFixup.cpp
MandatoryInlining.cpp
PredictableMemOpt.cpp
PMOMemoryUseCollector.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ struct MarkUninitializedFixup : SILFunctionTransform {
Projections.push_back(PBI);
}
}
assert(!Projections.empty()
&& "SILGen should never emit a "
"mark_uninitialized by itself");
assert(!Projections.empty() && "SILGen should never emit a "
"mark_uninitialized by itself");

// First replace all uses of the mark_uninitialized with the box.
MUI->replaceAllUsesWith(Box);
Expand Down Expand Up @@ -137,7 +136,6 @@ struct MarkUninitializedFixup : SILFunctionTransform {
SILAnalysis::InvalidationKind::BranchesAndInstructions);
}
};

} // end anonymous namespace

SILTransform *swift::createMarkUninitializedFixup() {
Expand Down
1 change: 0 additions & 1 deletion lib/SILOptimizer/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ silopt_register_sources(
Devirtualizer.cpp
GenericSpecializer.cpp
MergeCondFail.cpp
MarkUninitializedFixup.cpp
Outliner.cpp
ObjectOutliner.cpp
OwnershipModelEliminator.cpp
Expand Down