We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdbcb8f commit 683a749Copy full SHA for 683a749
lib/SILOptimizer/Mandatory/OwnershipModelEliminator.cpp
@@ -135,6 +135,10 @@ struct OwnershipModelEliminatorVisitor
135
bool visitExplicitCopyValueInst(ExplicitCopyValueInst *cvi);
136
bool visitDestroyValueInst(DestroyValueInst *dvi);
137
bool visitLoadBorrowInst(LoadBorrowInst *lbi);
138
+ bool visitMoveValueInst(MoveValueInst *mvi) {
139
+ eraseInstructionAndRAUW(mvi, mvi->getOperand());
140
+ return true;
141
+ }
142
bool visitBeginBorrowInst(BeginBorrowInst *bbi) {
143
eraseInstructionAndRAUW(bbi, bbi->getOperand());
144
return true;
0 commit comments