Skip to content

Commit

Permalink
fix loops in unwind code in MSVC
Browse files Browse the repository at this point in the history
I'm not sure how well this works, but it's worth a try.
  • Loading branch information
arielb1 committed May 28, 2017
1 parent 5576770 commit 6548aef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_trans/mir/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6548aef

Please sign in to comment.