Skip to content

Commit 8d7a06a

Browse files
author
Yuki Okushi
authored
Rollup merge of #105194 - tmiasko:cleanup-kinds, r=davidtwco
Add comment to cleanup_kinds based on the original commit message 1ae7ae0
2 parents bf7ea0d + 836ef61 commit 8d7a06a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_ssa/src/mir/analyze.rs

+3
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ impl CleanupKind {
261261
}
262262
}
263263

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.
264267
pub fn cleanup_kinds(mir: &mir::Body<'_>) -> IndexVec<mir::BasicBlock, CleanupKind> {
265268
fn discover_masters<'tcx>(
266269
result: &mut IndexVec<mir::BasicBlock, CleanupKind>,

0 commit comments

Comments
 (0)