File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ static bool isStoreCopy(SILValue value) {
339
339
return false ;
340
340
341
341
auto *user = value->getSingleUse ()->getUser ();
342
- return isa<StoreInst>(user) || isa<AssignInst>(user) ;
342
+ return isa<StoreInst>(user);
343
343
}
344
344
345
345
void ValueStorageMap::insertValue (SILValue value, SILValue storageAddress) {
@@ -2605,8 +2605,6 @@ class UseRewriter : SILInstructionVisitor<UseRewriter> {
2605
2605
vmi->setOperand (opAddr);
2606
2606
}
2607
2607
2608
- void visitAssignInst (AssignInst *assignInst);
2609
-
2610
2608
void visitBeginBorrowInst (BeginBorrowInst *borrow);
2611
2609
2612
2610
void visitEndBorrowInst (EndBorrowInst *end) {}
@@ -2837,11 +2835,6 @@ void UseRewriter::visitStoreInst(StoreInst *storeInst) {
2837
2835
rewriteStore (storeInst->getSrc (), storeInst->getDest (), isInit);
2838
2836
}
2839
2837
2840
- void UseRewriter::visitAssignInst (AssignInst *assignInst) {
2841
- rewriteStore (assignInst->getSrc (), assignInst->getDest (),
2842
- IsNotInitialization);
2843
- }
2844
-
2845
2838
// / Emit end_borrows for a an incomplete BorrowedValue with only nonlifetime
2846
2839
// / ending uses. This function inserts end_borrows on the lifetime boundary.
2847
2840
void UseRewriter::emitEndBorrows (SILValue value) {
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ static void addDefiniteInitialization(SILPassPipelinePlan &P) {
116
116
static void addMandatoryDiagnosticOptPipeline (SILPassPipelinePlan &P) {
117
117
P.startPipeline (" Mandatory Diagnostic Passes + Enabling Optimization Passes" );
118
118
P.addSILGenCleanup ();
119
- P.addAddressLowering ();
120
119
P.addDiagnoseInvalidEscapingCaptures ();
121
120
P.addDiagnoseStaticExclusivity ();
122
121
P.addNestedSemanticFunctionCheck ();
@@ -129,6 +128,7 @@ static void addMandatoryDiagnosticOptPipeline(SILPassPipelinePlan &P) {
129
128
P.addAllocBoxToStack ();
130
129
P.addNoReturnFolding ();
131
130
addDefiniteInitialization (P);
131
+ P.addAddressLowering ();
132
132
133
133
P.addFlowIsolation ();
134
134
You can’t perform that action at this time.
0 commit comments