SimplifyCFG: It is okay to ignore dealloc_stack to simplify an unreachable block

This commit is contained in:
Arnold Schwaighofer
2019-01-16 09:08:01 -08:00
parent b8a0893d8e
commit a0b67c622d
2 changed files with 6 additions and 1 deletions

View File

@@ -1865,6 +1865,7 @@ bool SimplifyCFG::simplifyUnreachableBlock(UnreachableInst *UI) {
case SILInstructionKind::StrongReleaseInst:
case SILInstructionKind::RetainValueInst:
case SILInstructionKind::ReleaseValueInst:
case SILInstructionKind::DeallocStackInst:
break;
default: