Skip to content

Commit 6ac40a9

Browse files
committed
Follow up of swiftlang#68180
Remove unnecessary cases
1 parent 5bea3d6 commit 6ac40a9

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
@@ -269,10 +269,7 @@ private func isValidUseOfObject(_ use: Operand) -> Bool {
269269
is UpcastInst,
270270
is BeginDeallocRefInst,
271271
is RefTailAddrInst,
272-
is RefElementAddrInst,
273-
is StructInst,
274-
is PointerToAddressInst,
275-
is IndexAddrInst:
272+
is RefElementAddrInst:
276273
for instUse in (inst as! SingleValueInstruction).uses {
277274
if !isValidUseOfObject(instUse) {
278275
return false

0 commit comments

Comments
 (0)