fix loops in unwind code in MSVC

I'm not sure how well this works, but it's worth a try.
This commit is contained in:
Ariel Ben-Yehuda 2017-05-18 23:58:39 +03:00
parent 55767702ec
commit 6548aefdeb

View file

@ -260,7 +260,9 @@ pub fn cleanup_kinds<'a, 'tcx>(mir: &mir::Mir<'tcx>) -> IndexVec<mir::BasicBlock
result[succ] = CleanupKind::Internal { funclet: funclet };
}
CleanupKind::Funclet => {
set_successor(funclet, succ);
if funclet != succ {
set_successor(funclet, succ);
}
}
CleanupKind::Internal { funclet: succ_funclet } => {
if funclet != succ_funclet {