File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
SwiftCompilerSources/Sources/Optimizer/Utilities Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -744,9 +744,10 @@ extension AddressUseDefWalker {
744
744
return walkUp ( address: sea. struct, path: path. push ( . structField, index: sea. fieldIndex) )
745
745
case let tea as TupleElementAddrInst :
746
746
return walkUp ( address: tea. tuple, path: path. push ( . tupleField, index: tea. fieldIndex) )
747
- case is InitEnumDataAddrInst , is UncheckedTakeEnumDataAddrInst :
748
- return walkUp ( address: ( def as! UnaryInstruction ) . operand. value,
749
- path: path. push ( . enumCase, index: ( def as! EnumInstruction ) . caseIndex) )
747
+ case let ida as InitEnumDataAddrInst :
748
+ return walkUp ( address: ida. operand. value, path: path. push ( . enumCase, index: ida. caseIndex) )
749
+ case let uteda as UncheckedTakeEnumDataAddrInst :
750
+ return walkUp ( address: uteda. operand. value, path: path. push ( . enumCase, index: uteda. caseIndex) )
750
751
case is InitExistentialAddrInst , is OpenExistentialAddrInst :
751
752
return walkUp ( address: ( def as! Instruction ) . operands [ 0 ] . value, path: path. push ( . existential, index: 0 ) )
752
753
case is BeginAccessInst , is MarkUnresolvedNonCopyableValueInst :
You can’t perform that action at this time.
0 commit comments