Skip to content

Commit ffea048

Browse files
committed
[SSADestroyHoisting] Removed incorrect mutation.
The classifyInstruciton function shouldn't modify state.
1 parent 96d90d0 commit ffea048

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/SILOptimizer/Transforms/SSADestroyHoisting.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ DeinitBarriers::DestroyReachability::classifyInstruction(SILInstruction *inst) {
268268
return Classification::DeadUser;
269269
}
270270
if (inst == storageDefInst) {
271-
result.barriers.push_back(inst);
272271
return Classification::Barrier;
273272
}
274273
if (knownUses.storageUsers.contains(inst)) {

0 commit comments

Comments
 (0)