Skip to content

Commit 2dd87b5

Browse files
committed
Revert "Revert "[mark-uninit-fixup] Change a SILBuilder => SILBuilderWithScope.""
This reverts commit 107d27a.
1 parent db6d5a7 commit 2dd87b5

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)