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:
parent
55767702ec
commit
6548aefdeb
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue