Skip to content

Commit 763dd47

Browse files
committed
Follow up of #68180
Remove unnecessary cases
1 parent d91fed8 commit 763dd47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/ObjectOutliner.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,7 @@ private func isValidUseOfObject(_ use: Operand) -> Bool {
265265
is UpcastInst,
266266
is BeginDeallocRefInst,
267267
is RefTailAddrInst,
268-
is RefElementAddrInst,
269-
is StructInst,
270-
is PointerToAddressInst,
271-
is IndexAddrInst:
268+
is RefElementAddrInst:
272269
for instUse in (inst as! SingleValueInstruction).uses {
273270
if !isValidUseOfObject(instUse) {
274271
return false

0 commit comments

Comments
 (0)