mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
Relax cleanup to cleanup check
This commit is contained in:
@@ -62,8 +62,8 @@ fn check_bb(&self, location: Location, bb: BasicBlock, edge_kind: EdgeKind) {
|
||||
(false, false, EdgeKind::Other)
|
||||
// Non-cleanup blocks can jump to cleanup blocks along unwind edges
|
||||
| (false, true, EdgeKind::Unwind)
|
||||
// Cleanup blocks can jump to cleanup blocks along unwind edges
|
||||
| (true, true, EdgeKind::Unwind) => {}
|
||||
// Cleanup blocks can jump to cleanup blocks along any edges
|
||||
| (true, true, _) => {}
|
||||
// All other jumps are invalid
|
||||
_ => {
|
||||
self.fail(
|
||||
|
||||
Reference in New Issue
Block a user