Skip to content

Commit f6c7c45

Browse files
authored
Merge pull request swiftlang#25701 from gottesmm/pr-b1a6decb052267904eb3f0892f311d0512a5b023
2 parents 898ba07 + 612cd9b commit f6c7c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/MarkUninitializedFixup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct MarkUninitializedFixup : SILFunctionTransform {
119119

120120
// Then create the new mark_uninitialized and force all uses of the
121121
// project_box to go through the new mark_uninitialized.
122-
SILBuilder B(std::next(PBI->getIterator()));
122+
SILBuilderWithScope B(&*std::next(PBI->getIterator()));
123123
SILValue Undef = SILUndef::get(PBI->getType(), *PBI->getFunction());
124124
auto *NewMUI =
125125
B.createMarkUninitialized(PBI->getLoc(), Undef, MUI->getKind());

0 commit comments

Comments
 (0)