We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deba5dd commit 836ef61Copy full SHA for 836ef61
compiler/rustc_codegen_ssa/src/mir/analyze.rs
@@ -261,6 +261,9 @@ impl CleanupKind {
261
}
262
263
264
+/// MSVC requires unwinding code to be split to a tree of *funclets*, where each funclet can only
265
+/// branch to itself or to its parent. Luckily, the code we generates matches this pattern.
266
+/// Recover that structure in an analyze pass.
267
pub fn cleanup_kinds(mir: &mir::Body<'_>) -> IndexVec<mir::BasicBlock, CleanupKind> {
268
fn discover_masters<'tcx>(
269
result: &mut IndexVec<mir::BasicBlock, CleanupKind>,
0 commit comments