Skip to content

Commit 495087f

Browse files
committed
[sil-opt] Fix to satisfy all trapping instruction case at SILInstruction::mayTrap
1 parent 923d6ed commit 495087f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/IR/SILInstruction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,7 @@ bool SILInstruction::mayTrap() const {
12661266
case SILInstructionKind::CondFailInst:
12671267
case SILInstructionKind::UnconditionalCheckedCastInst:
12681268
case SILInstructionKind::UnconditionalCheckedCastAddrInst:
1269+
case SILInstructionKind::UnconditionalCheckedCastValueInst:
12691270
return true;
12701271
default:
12711272
return false;

0 commit comments

Comments
 (0)