We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf7ea0d + 836ef61 commit 8d7a06aCopy full SHA for 8d7a06a
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